diff options
| author | Richard M. Stallman | 1993-11-28 11:38:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-28 11:38:10 +0000 |
| commit | bb1601939fa2ddb37e4792e17bb146009ce8e3b7 (patch) | |
| tree | f22ddfc45fdb40e7a1296d378ab426fb4214b12b | |
| parent | cabfafdc13d4a5421fe1c5527d16035760170926 (diff) | |
| download | emacs-bb1601939fa2ddb37e4792e17bb146009ce8e3b7.tar.gz emacs-bb1601939fa2ddb37e4792e17bb146009ce8e3b7.zip | |
When breaking links, use cp -p.
Copy install.sh into distribution.
Move the temp dir up into the parent dir;
don't leave the staging dir make-dist.tmp... in existence.
| -rwxr-xr-x | make-dist | 18 |
1 files changed, 16 insertions, 2 deletions
| @@ -76,6 +76,16 @@ else | |||
| 76 | sleep 5 | 76 | sleep 5 |
| 77 | fi | 77 | fi |
| 78 | 78 | ||
| 79 | ### Make sure we don't already have a directory emacs-${version}. | ||
| 80 | |||
| 81 | emacsname="emacs-${version}${new_extension}" | ||
| 82 | |||
| 83 | if [ -d ${emacsname} ] | ||
| 84 | then | ||
| 85 | echo Directory "${emacsname}" already exists >&2 | ||
| 86 | exit 1 | ||
| 87 | fi | ||
| 88 | |||
| 79 | ### Make sure the subdirectory is available. | 89 | ### Make sure the subdirectory is available. |
| 80 | tempparent="make-dist.tmp.$$" | 90 | tempparent="make-dist.tmp.$$" |
| 81 | if [ -d ${tempparent} ]; then | 91 | if [ -d ${tempparent} ]; then |
| @@ -108,8 +118,8 @@ fi | |||
| 108 | (cd lib-src; make -f Makefile.in getdate.c YACC="bison -y") | 118 | (cd lib-src; make -f Makefile.in getdate.c YACC="bison -y") |
| 109 | 119 | ||
| 110 | echo "Creating staging directory: \`${tempparent}'" | 120 | echo "Creating staging directory: \`${tempparent}'" |
| 121 | |||
| 111 | mkdir ${tempparent} | 122 | mkdir ${tempparent} |
| 112 | emacsname="emacs-${version}${new_extension}" | ||
| 113 | tempdir="${tempparent}/${emacsname}" | 123 | tempdir="${tempparent}/${emacsname}" |
| 114 | 124 | ||
| 115 | ### This trap ensures that the staging directory will be cleaned up even | 125 | ### This trap ensures that the staging directory will be cleaned up even |
| @@ -129,9 +139,10 @@ echo "Making links to top-level files." | |||
| 129 | ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} | 139 | ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} |
| 130 | ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir} | 140 | ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir} |
| 131 | ln make-dist vpath.sed ${tempdir} | 141 | ln make-dist vpath.sed ${tempdir} |
| 132 | ### Copy config.guess and config.sub; they're cross-filesystem symlinks. | 142 | ### Copy these files; they're cross-filesystem symlinks. |
| 133 | cp config.sub ${tempdir} | 143 | cp config.sub ${tempdir} |
| 134 | cp config.guess ${tempdir} | 144 | cp config.guess ${tempdir} |
| 145 | cp install.sh ${tempdir} | ||
| 135 | 146 | ||
| 136 | echo "Updating version number in README." | 147 | echo "Updating version number in README." |
| 137 | (cd ${tempdir} | 148 | (cd ${tempdir} |
| @@ -338,6 +349,9 @@ fi | |||
| 338 | if [ "${clean_up}" = yes ]; then | 349 | if [ "${clean_up}" = yes ]; then |
| 339 | echo "Cleaning up the staging directory." | 350 | echo "Cleaning up the staging directory." |
| 340 | rm -rf ${tempparent} | 351 | rm -rf ${tempparent} |
| 352 | else | ||
| 353 | (cd ${tempparent}; mv ${emacsname} ..) | ||
| 354 | rm -rf ${tempparent} | ||
| 341 | fi | 355 | fi |
| 342 | 356 | ||
| 343 | ### make-dist ends here | 357 | ### make-dist ends here |