X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/a819ec1a570c1f5171bcf57a1491ce249a8c5eff..cd4a9dc128ebd8e126483274bfdea88e1ffb250a:/admin/quick-install-emacs diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs index c73dcc6f07..e451cfcb2a 100755 --- a/admin/quick-install-emacs +++ b/admin/quick-install-emacs @@ -1,14 +1,38 @@ #!/bin/sh -# quick-install-emacs -- do a halfway-decent job of installing emacs quickly -# Written by Miles Bader +### quick-install-emacs --- do a halfway-decent job of installing emacs quickly + +## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 +## Free Software Foundation, Inc. + +## Author: Miles Bader + +## This file is part of GNU Emacs. + +## GNU Emacs is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 3, or (at your option) +## any later version. + +## GNU Emacs is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. + +## You should have received a copy of the GNU General Public License +## along with GNU Emacs; see the file COPYING. If not, write to the +## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +## Boston, MA 02110-1301, USA. + +### Commentary: + +## This script is mainly intended for emacs maintainer or pretesters who +## install emacs very often. See the --help output for more details. -# This script is mainly intended for emacs maintainer or pretesters who -# install emacs very often. See the --help output for more details. PUBLIC_LIBSRC_BINARIES='b2m emacsclient etags ctags ebrowse' PUBLIC_LIBSRC_SCRIPTS='grep-changelog rcs-checkin' -AVOID="CVS -DIC README COPYING ChangeLog ~ \.orig$ \.rej$ Makefile makefile stamp-subdir .cvsignore \.[cho]$ make-docfile testfile test-distrib" +AVOID="CVS -DIC README COPYING ChangeLog ~ [.]orig$ [.]rej$ Makefile makefile stamp-subdir [.]cvsignore [.]arch-ids [{]arch[}] [.][cho]$ make-docfile testfile test-distrib" # Prune old binaries lying around in the source tree PRUNE=no @@ -19,15 +43,16 @@ VERBOSE='' me="`basename $0`" -# Install commands (these commands are also expected to understand the -# GNU -v (--verbose) option) +# Install commands (if the user specifies the `--verbose' option, it is +# passed to these commands, so that feature only works if these commands +# implement it too) LINK='cp -lf' COPY='cp -f' REMOVE='rm -r' +MKDIR='mkdir -p' # Used to execute commands once once we create them EXEC='sh' -MKDIR='mkdir --verbose -p' NAWK=/usr/bin/nawk @@ -90,7 +115,7 @@ EOF ;; --version) cat < EOF @@ -133,8 +158,9 @@ elif test ! -r "$BUILD/config.status"; then fi CONFIG_STATUS="$BUILD/config.status" -function get_config_var () { - if ! sed -n "s/^s\(.\)@$1@\1\(.*\)\1.*$/\2/p" $CONFIG_STATUS | sed q | grep '' +get_config_var () +{ + if ! sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep '' then echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" exit 4 @@ -153,9 +179,10 @@ DST_BIN="$prefix/bin" DST_LIBEXEC="$prefix/libexec/emacs/$VERSION/$ARCH" DST_INFO="$prefix/info" -function maybe_mkdir () { +maybe_mkdir () +{ if ! test -d "$1"; then - $MKDIR "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2 + $MKDIR $VERBOSE "$1" 2>&1 | sed "s/^mkdir:/$me:/" 1>&2 fi } @@ -177,15 +204,12 @@ if test x"$PRUNE" != xno; then echo $REMOVE_CMD $D PRUNED="$PRUNED $D" done - for D in `ls -1t $BUILD/lib-src/fns-* | sed 1d`; do - echo $REMOVE_CMD $D - PRUNED="$PRUNED $D" - done fi test x"$PRUNE" = xonly && exit 0 -function maybe_emit_copy () { +maybe_emit_copy () +{ if test "$FORCE" = yes || ! cmp -s $1 $2; then echo $LINK_CMD $1 $2 fi @@ -338,3 +362,5 @@ END { done ) | eval $EXEC + +# arch-tag: 9322b572-9755-4cf7-a67a-21e6505f1477