aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorMiles Bader2001-10-19 17:21:49 +0000
committerMiles Bader2001-10-19 17:21:49 +0000
commitc591537064ced321e2e92f460fa44437af0c840d (patch)
treea22f72ae53368598e234f1e19a6cf2ac939f5d50 /admin
parent74499542df64eb8041b4de71eb091230e52c0414 (diff)
downloademacs-c591537064ced321e2e92f460fa44437af0c840d.tar.gz
emacs-c591537064ced321e2e92f460fa44437af0c840d.zip
Exit if we can't find some variable.
(AVOID): Add .orig & .rej files. (get_config_var): Be more liberal about format of config.status sed commands.
Diffstat (limited to 'admin')
-rw-r--r--admin/ChangeLog7
-rwxr-xr-xadmin/quick-install-emacs12
2 files changed, 13 insertions, 6 deletions
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 9323c1f5194..529ecd1bfd0 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,3 +1,10 @@
12001-10-20 Miles Bader <miles@gnu.org>
2
3 * quick-install-emacs: Exit if we can't find some variable.
4 (AVOID): Add .orig & .rej files.
5 (get_config_var): Be more liberal about format of config.status
6 sed commands.
7
12001-10-19 Gerd Moellmann <gerd@gnu.org> 82001-10-19 Gerd Moellmann <gerd@gnu.org>
2 9
3 * admin.el: New file. 10 * admin.el: New file.
diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs
index c6ea67eb418..947f031c1e5 100755
--- a/admin/quick-install-emacs
+++ b/admin/quick-install-emacs
@@ -8,7 +8,7 @@
8PUBLIC_LIBSRC_BINARIES='b2m emacsclient etags ctags ebrowse' 8PUBLIC_LIBSRC_BINARIES='b2m emacsclient etags ctags ebrowse'
9PUBLIC_LIBSRC_SCRIPTS='grep-changelog rcs-checkin' 9PUBLIC_LIBSRC_SCRIPTS='grep-changelog rcs-checkin'
10 10
11AVOID="CVS -DIC README COPYING ChangeLog ~ Makefile makefile stamp-subdir .cvsignore \.[cho]$ make-docfile testfile test-distrib" 11AVOID="CVS -DIC README COPYING ChangeLog ~ \.orig$ \.rej$ Makefile makefile stamp-subdir .cvsignore \.[cho]$ make-docfile testfile test-distrib"
12 12
13# Prune old binaries lying around in the source tree 13# Prune old binaries lying around in the source tree
14PRUNE=no 14PRUNE=no
@@ -131,17 +131,17 @@ fi
131 131
132CONFIG_STATUS="$BUILD/config.status" 132CONFIG_STATUS="$BUILD/config.status"
133function get_config_var () { 133function get_config_var () {
134 if ! $NAWK -F% '$2 == "@'$1'@" { print $3; ok=1; exit; }; END { exit(!ok); }' $CONFIG_STATUS 134 if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | head -1 | grep ''
135 then 135 then
136 echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" 136 echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS"
137 exit 4 137 exit 4
138 fi 138 fi
139} 139}
140 140
141test x"$SRC" = x && SRC="`get_config_var srcdir`" 141test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; }
142test x"$prefix" = x && prefix="`get_config_var prefix`" 142test x"$prefix" = x && { prefix="`get_config_var prefix`" || exit 4 ; }
143test x"$VERSION" = x && VERSION="`get_config_var version`" 143test x"$VERSION" = x && { VERSION="`get_config_var version`" || exit 4 ; }
144test x"$ARCH" = x && ARCH="`get_config_var host`" 144test x"$ARCH" = x && { ARCH="`get_config_var host`" || exit 4 ; }
145 145
146DST_SHARE="$prefix/share/emacs/$VERSION" 146DST_SHARE="$prefix/share/emacs/$VERSION"
147DST_BIN="$prefix/bin" 147DST_BIN="$prefix/bin"