]> code.delx.au - gnu-emacs/blobdiff - make-dist
Maybe include unistd.h.
[gnu-emacs] / make-dist
index 86a78f88e51a78fa12e36220885118c1a810a8d3..5aa1c17ca5e33065918a0e5d8f1aa8c48c15ab9f 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -74,6 +74,28 @@ while [ $# -gt 0 ]; do
     "--compress")
       default_gzip="compress"
     ;;
+
+    "--snapshot")
+      clean_up=yes
+      make_tar=yes
+      update=no
+      check=no
+     ;;
+
+    "--help")
+      echo "Usage: ${progname} [options]"
+      echo ""
+      echo "  --clean-up       delete staging directories when done"
+      echo "  --compress       use compress instead of gzip"
+      echo "  --newer=TIME     don't include files older than TIME"
+      echo "  --no-check       don't check for bad file names etc."
+      echo "  --no-update      don't recompile or do analogous things"
+      echo "  --snapshot       same as --clean-up --no-update --tar --no-check"
+      echo "  --tar            make a tar file"
+      echo ""
+      exit 0
+    ;;
+
     * )
       echo "${progname}: Unrecognized argument: $1" >&2
       exit 1
@@ -266,7 +288,7 @@ ln config.bat make-dist update-subdirs vpath.sed ${tempdir}
 cp mkinstalldirs ${tempdir}
 cp config.sub ${tempdir}
 cp config.guess ${tempdir}
-cp install.sh ${tempdir}
+cp install-sh ${tempdir}
 
 echo "Updating version number in README"
 (cd ${tempdir}
@@ -405,7 +427,7 @@ echo "Making links to \`lib-src'"
 (cd lib-src
  ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src
  ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src
- ln rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
+ ln grep-changelog rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
  ## If we ended up with a symlink, or if we did not get anything
  ## due to a cross-device symlink, copy the file.
  for file in [a-zA-Z]*.[chy]; do