]> code.delx.au - gnu-emacs/blobdiff - make-dist
fixed parens in the last patch
[gnu-emacs] / make-dist
index 192fcc6f07376d82c4420fc5299b1cd4e45fc0e4..5c993a19cfdd143c17f73b358a25ebff249f319f 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -150,7 +150,7 @@ echo Version numbers are $version and $shortversion
 
 if [ $update = yes ];
 then
-  if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
+  if grep -s "@set EMACSVER  *${shortversion}" ./man/emacs.texi > /dev/null; then
     true
   else
     echo "You must update the version number in \`./man/emacs.texi'"
@@ -231,7 +231,7 @@ then
 fi
 
 ### Make sure configure is newer than configure.in.
-if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then
+if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then
   echo "\`./configure.in' is newer than \`./configure'" >&2
   echo "Running autoconf" >&2
   autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; }
@@ -242,7 +242,7 @@ then
   echo "Updating Info files"
   (cd man; make -f Makefile.in srcdir=. info)
   (cd lispref; make -f Makefile.in srcdir=. info)
-  (cd lispintro; make -f Makefile.in srcdir=. info)
+  (cd lispintro; make -f Makefile.in SHELL=/bin/sh srcdir=. info VPATH=.)
 
   echo "Updating finder, custom and autoload data"
   (cd lisp; make updates EMACS="$EMACS")
@@ -268,7 +268,9 @@ echo "Making lisp/MANIFEST"
     files="$files $thisdir"
   fi
  done
- head -1 $files | grep '^;' | sed -e 's/;;; //' | sort > MANIFEST)
+ for file in $files
+ do sed -n 's/^;;; //p; q' $file
+ done | sort > MANIFEST)
 
 echo "Creating staging directory: \`${tempparent}'"
 
@@ -309,7 +311,7 @@ echo "Updating version number in README"
 
 echo "Creating subdirectories"
 for subdir in lisp site-lisp lispref lispintro \
-             leim leim leim/CXTERM-DIC leim/MISC-DIC \
+             leim leim/CXTERM-DIC leim/MISC-DIC \
              leim/SKK-DIC leim/ja-dic leim/quail \
              src src/m src/s src/bitmaps lib-src oldXMenu lwlib \
              nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
@@ -595,7 +597,8 @@ echo "Making links to \`man'"
 
 echo "Making links to \`lispref'"
 (cd lispref
- ln *.texi *.aux *.cps *.fns *.kys *.vrs index.*perm ../${tempdir}/lispref
+ ln `ls -1 *.texi | grep -v index.texi` ../${tempdir}/lispref
+ ln *.aux *.cps *.fns *.kys *.vrs index.*perm ../${tempdir}/lispref
  ln *.txt *.el spellfile permute-index tindex.pl ../${tempdir}/lispref
  test -f README && ln README ../${tempdir}/lispref
  test -f Makefile.in && ln Makefile.in ../${tempdir}/lispref