diff options
| author | Miles Bader | 2009-03-11 23:50:45 +0000 |
|---|---|---|
| committer | Miles Bader | 2009-03-11 23:50:45 +0000 |
| commit | 40c3f43443fc9fa6685d120f70a64bea71d0ff94 (patch) | |
| tree | 841b66925a0085476b46de002715dc4726b4c6c0 | |
| parent | c11ffe1a4ca4bff00ae45dc848264b27f39a7f6c (diff) | |
| download | emacs-40c3f43443fc9fa6685d120f70a64bea71d0ff94.tar.gz emacs-40c3f43443fc9fa6685d120f70a64bea71d0ff94.zip | |
quick-install-emacs: Be more clever about locating info directory
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1570
| -rw-r--r-- | admin/ChangeLog | 4 | ||||
| -rwxr-xr-x | admin/quick-install-emacs | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog index 7422d12fb81..299190bb2a7 100644 --- a/admin/ChangeLog +++ b/admin/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2009-03-11 Miles Bader <Miles Bader <miles@gnu.org>> | ||
| 2 | |||
| 3 | * quick-install-emacs: Be more clever about locating info directory. | ||
| 4 | |||
| 1 | 2009-02-24 Juanma Barranquero <lekktu@gmail.com> | 5 | 2009-02-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * nt/README.W32: Fix typos. | 7 | * nt/README.W32: Fix typos. |
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs index c9e020546e5..2b52a864aec 100755 --- a/admin/quick-install-emacs +++ b/admin/quick-install-emacs | |||
| @@ -176,7 +176,19 @@ VERSION=`grep 'defconst[ ]*emacs-version' $SRC/lisp/version.el \ | |||
| 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 | { |