Mercurial > emacs
comparison make-dist @ 994:5b2a1922c4d5
*** empty log message ***
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Fri, 14 Aug 1992 22:36:42 +0000 |
parents | 144a9a018e7c |
children | 9cb2c2723b73 |
comparison
equal
deleted
inserted
replaced
993:292490bf8a49 | 994:5b2a1922c4d5 |
---|---|
7 # you should make sure that this script will include it. | 7 # you should make sure that this script will include it. |
8 | 8 |
9 progname="$0" | 9 progname="$0" |
10 | 10 |
11 # Exit if a command fails. | 11 # Exit if a command fails. |
12 set -e | 12 # set -e |
13 | 13 |
14 # Print out each line we read, for debugging's sake. | 14 # Print out each line we read, for debugging's sake. |
15 # set -v | 15 # set -v |
16 | 16 |
17 clean_up=yes | 17 clean_up=yes |
76 | 76 |
77 echo "Creating staging directory: \`${tempparent}'" | 77 echo "Creating staging directory: \`${tempparent}'" |
78 mkdir ${tempparent} | 78 mkdir ${tempparent} |
79 emacsname="emacs-${version}" | 79 emacsname="emacs-${version}" |
80 tempdir="${tempparent}/${emacsname}" | 80 tempdir="${tempparent}/${emacsname}" |
81 | |
82 # This trap ensures that the staging directory will be cleaned up even | |
83 # when the script is interrupted in mid-career. | |
84 if [ "${clean_up}" = yes ]; then | |
85 trap "echo 'Interrupted...cleaning up the staging directory.'; rm -rf ${tempparent}; exit 1" 1 2 15 | |
86 fi | |
81 | 87 |
82 echo "Creating top directory: \`${tempdir}'" | 88 echo "Creating top directory: \`${tempdir}'" |
83 mkdir ${tempdir} | 89 mkdir ${tempdir} |
84 | 90 |
85 # We copy in the top-level files before creating the subdirectories in | 91 # We copy in the top-level files before creating the subdirectories in |
133 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \ | 139 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \ |
134 ../${tempdir}/src | 140 ../${tempdir}/src |
135 ln .gdbinit .dbxinit ../${tempdir}/src | 141 ln .gdbinit .dbxinit ../${tempdir}/src |
136 ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src | 142 ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src |
137 cd ../${tempdir}/src | 143 cd ../${tempdir}/src |
138 rm -f config.h paths.h Makefile | 144 rm -f config.h paths.h Makefile) |
139 etags *.h *.c ../lisp/*.el) | |
140 | 145 |
141 echo "Making links to \`src/m'." | 146 echo "Making links to \`src/m'." |
142 (cd src/m | 147 (cd src/m |
143 ln README *.h ../../${tempdir}/src/m) | 148 ln README *.h ../../${tempdir}/src/m) |
144 | 149 |
219 | 224 |
220 if [ "${clean_up}" = yes ]; then | 225 if [ "${clean_up}" = yes ]; then |
221 echo "Cleaning up the staging directory." | 226 echo "Cleaning up the staging directory." |
222 rm -rf ${tempparent} | 227 rm -rf ${tempparent} |
223 fi | 228 fi |
229 | |
230 # make-dist ends here |