Mercurial > emacs
comparison admin/quick-install-emacs @ 102491:467e43a5edd5
quick-install-emacs: Be more clever about locating info directory
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1570
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 11 Mar 2009 23:50:45 +0000 |
parents | ce88a631c161 |
children | f4ab9c8bed3f |
comparison
equal
deleted
inserted
replaced
102490:252fb69956fe | 102491:467e43a5edd5 |
---|---|
174 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 174 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
175 | 175 |
176 DST_SHARE="$prefix/share/emacs/$VERSION" | 176 DST_SHARE="$prefix/share/emacs/$VERSION" |
177 DST_BIN="$prefix/bin" | 177 DST_BIN="$prefix/bin" |
178 DST_LIBEXEC="$prefix/libexec/emacs/$VERSION/$ARCH" | 178 DST_LIBEXEC="$prefix/libexec/emacs/$VERSION/$ARCH" |
179 DST_INFO="$prefix/info" | 179 |
180 # There are various common places for the info dir to be, so try to | |
181 # use whatever's already there, defaulting to (and preferring) | |
182 # .../share/info. | |
183 # | |
184 DST_INFO='' | |
185 for D in "$prefix/share/info" "$prefix/info"; do | |
186 if test -d "$D"; then | |
187 DST_INFO="$D" | |
188 break | |
189 fi | |
190 done | |
191 DST_INFO=${DST_INFO:-"$prefix/share/info"} | |
180 | 192 |
181 maybe_mkdir () | 193 maybe_mkdir () |
182 { | 194 { |
183 if ! test -d "$1"; then | 195 if ! test -d "$1"; then |
184 $MKDIR $VERBOSE "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2 | 196 $MKDIR $VERBOSE "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2 |