diff make-dist @ 2487:7ba321c5b44d

* make-dist: It's oldXMenu/compile.com, not oldXMenu/compile.mms. Don't try to make links to the RCS or Old subdirectories. Use the appropriate extension for the compression type in use. Create the tar file in the shell's initial default directory, not in ${tempparent}. Erase the whole ${tempparent} tree, not just ${tempdir}.
author Jim Blandy <jimb@redhat.com>
date Thu, 08 Apr 1993 09:32:50 +0000
parents ff45a6d7b464
children 332457055981
line wrap: on
line diff
--- a/make-dist	Thu Apr 08 07:10:42 1993 +0000
+++ b/make-dist	Thu Apr 08 09:32:50 1993 +0000
@@ -200,16 +200,16 @@
 (cd oldXMenu
  ln *.c *.h ../${tempdir}/oldXMenu
  ln README Makefile Imakefile ChangeLog ../${tempdir}/oldXMenu
- ln compile.mms descrip.mms ../${tempdir}/oldXMenu)
+ ln compile.com descrip.mms ../${tempdir}/oldXMenu)
 
 echo "Making links to \`etc'."
-### Don't distribute = files, TAGS, DOC files, backups, autosaves, or tex litter.
+### Don't distribute = files, TAGS, DOC files, backups, autosaves, or
+### tex litter.
 (cd etc
- ln [0-9a-zA-Z]* ../${tempdir}/etc
+ ln `ls -d * | grep -v 'RCS' | grep -v 'Old'` ../${tempdir}/etc
  cd ../${tempdir}/etc
- rm -f DOC* *~ \#*\# *.dvi *.log *,v core
- rm -fr Old
- rm -f =* TAGS)
+ rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core
+ rm -f TAGS)
 
 echo "Making links to \`cpp'."
 (cd cpp
@@ -279,15 +279,19 @@
       echo compress
     )`
   fi
+  case "${default_gzip}" in
+    compress* ) gzip_extension=.Z ;;
+    * )         gzip_extension=.z ;;
+  esac
   echo "Creating tar file."
-  (cd ${tempparent}
-   tar cvf - ${emacsname} | ${default_gzip} > ${emacsname}.tar.Z
-  )
+  (cd ${tempparent} ; tar cvf - ${emacsname} ) \
+    | ${default_gzip} \
+    > ${emacsname}.tar${gzip_extension}
 fi
 
 if [ "${clean_up}" = yes ]; then
   echo "Cleaning up the staging directory."
-  rm -rf ${tempdir}
+  rm -rf ${tempparent}
 fi
 
 ### make-dist ends here