comparison make-dist @ 7259:5a03fc943b38

Distribute config.bat.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 May 1994 23:13:05 +0000
parents 15e380b232fa
children 836cfa8829a7
comparison
equal deleted inserted replaced
7258:68c7b93914fe 7259:5a03fc943b38
60 echo "distribution tree. cd to that directory and try again." >&2 60 echo "distribution tree. cd to that directory and try again." >&2
61 exit 1 61 exit 1
62 fi 62 fi
63 63
64 ### Find out which version of Emacs this is. 64 ### Find out which version of Emacs this is.
65 shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \
66 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
65 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ 67 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \
66 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'` 68 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
67 if [ ! "${version}" ]; then 69 if [ ! "${version}" ]; then
68 echo "${progname}: can't find current emacs version in \`./lisp/version.el'." >&2 70 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'." >&2
69 exit 1 71 exit 1
70 fi 72 fi
71 73
72 if grep -s "GNU Emacs version ${version}" ./man/emacs.texi > /dev/null; then 74 if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
73 true 75 true
74 else 76 else
75 echo "You must update the version number in \`./man/emacs.texi'" 77 echo "You must update the version number in \`./man/emacs.texi'"
76 sleep 5 78 sleep 5
77 fi 79 fi
113 echo "Attempting to run autoconf." >&2 115 echo "Attempting to run autoconf." >&2
114 autoconf 116 autoconf
115 fi 117 fi
116 118
117 ### Update getdate.c. 119 ### Update getdate.c.
118 (cd lib-src; make -f Makefile.in getdate.c YACC="bison -y") 120 (cd lib-src; make -f Makefile getdate.c YACC="bison -y")
119 121
120 echo "Creating staging directory: \`${tempparent}'" 122 echo "Creating staging directory: \`${tempparent}'"
121 123
122 mkdir ${tempparent} 124 mkdir ${tempparent}
123 tempdir="${tempparent}/${emacsname}" 125 tempdir="${tempparent}/${emacsname}"
136 ### tar file; this means that people can start reading the INSTALL and 138 ### tar file; this means that people can start reading the INSTALL and
137 ### README while the rest of the tar file is still unpacking. Whoopee. 139 ### README while the rest of the tar file is still unpacking. Whoopee.
138 echo "Making links to top-level files." 140 echo "Making links to top-level files."
139 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} 141 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
140 ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir} 142 ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir}
141 ln make-dist vpath.sed ${tempdir} 143 ln config.bat make-dist vpath.sed ${tempdir}
142 ### Copy these files; they're cross-filesystem symlinks. 144 ### Copy these files; they're cross-filesystem symlinks.
143 cp config.sub ${tempdir} 145 cp config.sub ${tempdir}
144 cp config.guess ${tempdir} 146 cp config.guess ${tempdir}
145 cp install.sh ${tempdir} 147 cp install.sh ${tempdir}
146 148
234 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) 236 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
235 237
236 echo "Making links to \`lib-src'." 238 echo "Making links to \`lib-src'."
237 (cd lib-src 239 (cd lib-src
238 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex ../${tempdir}/lib-src 240 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex ../${tempdir}/lib-src
239 ln ChangeLog Makefile.in README testfile vcdiff rcs2log ../${tempdir}/lib-src 241 ln ChangeLog Makefile.in.in README testfile vcdiff ../${tempdir}/lib-src
240 ln emacs.csh rcs-checkin ../${tempdir}/lib-src 242 ln emacs.csh rcs2log rcs-checkin ../${tempdir}/lib-src
241 cd ../${tempdir}/lib-src 243 cd ../${tempdir}/lib-src
242 rm -f getdate.tab.c y.tab.c y.tab.h 244 rm -f getdate.tab.c y.tab.c y.tab.h
243 rm -f =* TAGS) 245 rm -f =* TAGS)
244 246
245 echo "Making links to \`msdos'." 247 echo "Making links to \`msdos'."