diff options
| author | Jim Blandy | 1992-04-24 08:11:54 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-04-24 08:11:54 +0000 |
| commit | 4746118aca2d5cbdd054b4af4814d56550dfbc79 (patch) | |
| tree | 370e07c6950794f936bc8d434cb0560d883e4a0b /make-dist | |
| parent | d4327fecc103493bc8275c3580b05c06c9fcc019 (diff) | |
| download | emacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.tar.gz emacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.zip | |
*** empty log message ***
Diffstat (limited to 'make-dist')
| -rwxr-xr-x | make-dist | 24 |
1 files changed, 16 insertions, 8 deletions
| @@ -14,12 +14,17 @@ set -e | |||
| 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 | cleanup=yes | 17 | clean_up=yes |
| 18 | make_tar=yes | ||
| 18 | 19 | ||
| 19 | while [ $# -gt 0 ]; do | 20 | while [ $# -gt 0 ]; do |
| 20 | case "$1" in | 21 | case "$1" in |
| 21 | "--no-cleanup" ) | 22 | "--no-clean_up" ) |
| 22 | cleanup=no | 23 | clean_up=no |
| 24 | ;; | ||
| 25 | "--no-tar" ) | ||
| 26 | make_tar=no | ||
| 27 | clean_up=no | ||
| 23 | ;; | 28 | ;; |
| 24 | * ) | 29 | * ) |
| 25 | echo "${progname}: Unrecognized argument: $1" >&2 | 30 | echo "${progname}: Unrecognized argument: $1" >&2 |
| @@ -65,9 +70,10 @@ mkdir ${tempdir} | |||
| 65 | 70 | ||
| 66 | # We copy in the top-level files before creating the subdirectories in | 71 | # We copy in the top-level files before creating the subdirectories in |
| 67 | # hopes that this will make the top-level files appear first in the | 72 | # hopes that this will make the top-level files appear first in the |
| 68 | # tar file. | 73 | # tar file; this means that people can start reading the INSTALL and |
| 74 | # README while the rest of the tar file is still unpacking. Whoopee. | ||
| 69 | echo "Copying top-level files." | 75 | echo "Copying top-level files." |
| 70 | ln INSTALL PROBLEMS README ${tempdir} | 76 | ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README ${tempdir} |
| 71 | ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} | 77 | ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} |
| 72 | 78 | ||
| 73 | echo "Creating subdirectories." | 79 | echo "Creating subdirectories." |
| @@ -174,10 +180,12 @@ for subdir in lisp src lib-src info shortnames; do | |||
| 174 | ln -s ../etc/COPYING ${tempdir}/${subdir} | 180 | ln -s ../etc/COPYING ${tempdir}/${subdir} |
| 175 | done | 181 | done |
| 176 | 182 | ||
| 177 | echo "Creating tar file." | 183 | if [ "${make_tar}" = yes ]; then |
| 178 | (cd ${tempparent}; tar cvf - ${emacsname}) | compress > ${emacsname}.tar.Z | 184 | echo "Creating tar file." |
| 185 | (cd ${tempparent}; tar cvf - ${emacsname}) | compress > ${emacsname}.tar.Z | ||
| 186 | fi | ||
| 179 | 187 | ||
| 180 | if [ "${cleanup}" = yes ]; then | 188 | if [ "${clean_up}" = yes ]; then |
| 181 | echo "Cleaning up the staging directory." | 189 | echo "Cleaning up the staging directory." |
| 182 | rm -rf ${tempparent} | 190 | rm -rf ${tempparent} |
| 183 | fi | 191 | fi |