aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorJim Blandy1992-04-24 08:11:54 +0000
committerJim Blandy1992-04-24 08:11:54 +0000
commit4746118aca2d5cbdd054b4af4814d56550dfbc79 (patch)
tree370e07c6950794f936bc8d434cb0560d883e4a0b /make-dist
parentd4327fecc103493bc8275c3580b05c06c9fcc019 (diff)
downloademacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.tar.gz
emacs-4746118aca2d5cbdd054b4af4814d56550dfbc79.zip
*** empty log message ***
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist24
1 files changed, 16 insertions, 8 deletions
diff --git a/make-dist b/make-dist
index db0a5cb62c4..cd2773bd5c7 100755
--- a/make-dist
+++ b/make-dist
@@ -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
17cleanup=yes 17clean_up=yes
18make_tar=yes
18 19
19while [ $# -gt 0 ]; do 20while [ $# -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.
69echo "Copying top-level files." 75echo "Copying top-level files."
70ln INSTALL PROBLEMS README ${tempdir} 76ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README ${tempdir}
71ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} 77ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir}
72 78
73echo "Creating subdirectories." 79echo "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}
175done 181done
176 182
177echo "Creating tar file." 183if [ "${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
186fi
179 187
180if [ "${cleanup}" = yes ]; then 188if [ "${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}
183fi 191fi