Mercurial > emacs
comparison make-dist @ 14102:d3be604d3700
Recompile outdated .elc files and update all autoloads.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 09 Jan 1996 22:59:24 +0000 |
parents | 0a94cd2c51c4 |
children | 05f4d693bbbf |
comparison
equal
deleted
inserted
replaced
14101:ef1445ba2512 | 14102:d3be604d3700 |
---|---|
83 shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \ | 83 shortversion=`grep 'defconst[ ]*emacs-version' lisp/version.el \ |
84 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` | 84 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` |
85 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ | 85 version=`grep 'defconst[ ]*emacs-version' lisp/version.el \ |
86 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 86 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` |
87 if [ ! "${version}" ]; then | 87 if [ ! "${version}" ]; then |
88 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'." >&2 | 88 echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2 |
89 exit 1 | 89 exit 1 |
90 fi | 90 fi |
91 | 91 |
92 echo $version and $shortversion | 92 echo Version numbers are $version and $shortversion |
93 | 93 |
94 if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then | 94 if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then |
95 true | 95 true |
96 else | 96 else |
97 echo "You must update the version number in \`./man/emacs.texi'" | 97 echo "You must update the version number in \`./man/emacs.texi'" |
129 fi | 129 fi |
130 rm -f /tmp/el /tmp/elc | 130 rm -f /tmp/el /tmp/elc |
131 | 131 |
132 ### Make sure configure is newer than configure.in. | 132 ### Make sure configure is newer than configure.in. |
133 if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then | 133 if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then |
134 echo "\`./configure.in' seems to be newer than \`./configure.'" >&2 | 134 echo "\`./configure.in' is newer than \`./configure'" >&2 |
135 echo "Attempting to run autoconf." >&2 | 135 echo "Running autoconf" >&2 |
136 autoconf | 136 autoconf |
137 fi | 137 fi |
138 | 138 |
139 ### Update getdate.c. | 139 ### Update getdate.c. |
140 (cd lib-src; make -f Makefile getdate.c YACC="bison -y") | 140 (cd lib-src; make -f Makefile getdate.c YACC="bison -y") |
141 | 141 |
142 echo "Updating Info files." | 142 echo "Updating Info files" |
143 | 143 |
144 (cd man; make info) | 144 (cd man; make info) |
145 | 145 |
146 echo "Updating finder-inf.el." | 146 echo "Updating finder-inf.el" |
147 | 147 |
148 ### update finder-inf.el. | |
149 (cd lisp; ../src/emacs -batch -l finder -f finder-compile-keywords) | 148 (cd lisp; ../src/emacs -batch -l finder -f finder-compile-keywords) |
150 (cd lisp; ../src/emacs -batch -f batch-byte-compile finder-inf.el) | 149 |
150 echo "Recompiling Lisp files" | |
151 | |
152 src/emacs -batch -f batch-byte-recompile-directory lisp | |
153 | |
154 echo "Updating autoloads" | |
155 | |
156 src/emacs -batch -f batch-update-autoloads lisp | |
151 | 157 |
152 echo "Making lisp/MANIFEST" | 158 echo "Making lisp/MANIFEST" |
153 | 159 |
154 (cd lisp; head -1 *.el | grep '^;' | sed -e 's/;;; //' > MANIFEST) | 160 (cd lisp; head -1 *.el | grep '^;' | sed -e 's/;;; //' > MANIFEST) |
155 | 161 |
159 tempdir="${tempparent}/${emacsname}" | 165 tempdir="${tempparent}/${emacsname}" |
160 | 166 |
161 ### This trap ensures that the staging directory will be cleaned up even | 167 ### This trap ensures that the staging directory will be cleaned up even |
162 ### when the script is interrupted in mid-career. | 168 ### when the script is interrupted in mid-career. |
163 if [ "${clean_up}" = yes ]; then | 169 if [ "${clean_up}" = yes ]; then |
164 trap "echo 'Interrupted...cleaning up the staging directory.'; rm -rf ${tempparent}; exit 1" 1 2 15 | 170 trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; exit 1" 1 2 15 |
165 fi | 171 fi |
166 | 172 |
167 echo "Creating top directory: \`${tempdir}'" | 173 echo "Creating top directory: \`${tempdir}'" |
168 mkdir ${tempdir} | 174 mkdir ${tempdir} |
169 | 175 |
170 ### We copy in the top-level files before creating the subdirectories in | 176 ### We copy in the top-level files before creating the subdirectories in |
171 ### hopes that this will make the top-level files appear first in the | 177 ### hopes that this will make the top-level files appear first in the |
172 ### tar file; this means that people can start reading the INSTALL and | 178 ### tar file; this means that people can start reading the INSTALL and |
173 ### README while the rest of the tar file is still unpacking. Whoopee. | 179 ### README while the rest of the tar file is still unpacking. Whoopee. |
174 echo "Making links to top-level files." | 180 echo "Making links to top-level files" |
175 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README BUGS move-if-change ${tempdir} | 181 ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README BUGS move-if-change ${tempdir} |
176 ln ChangeLog Makefile.in configure configure.in ${tempdir} | 182 ln ChangeLog Makefile.in configure configure.in ${tempdir} |
177 ln config.bat make-dist update-subdirs vpath.sed ${tempdir} | 183 ln config.bat make-dist update-subdirs vpath.sed ${tempdir} |
178 ### Copy these files; they're cross-filesystem symlinks. | 184 ### Copy these files; they're cross-filesystem symlinks. |
179 cp mkinstalldirs ${tempdir} | 185 cp mkinstalldirs ${tempdir} |
180 cp config.sub ${tempdir} | 186 cp config.sub ${tempdir} |
181 cp config.guess ${tempdir} | 187 cp config.guess ${tempdir} |
182 cp install.sh ${tempdir} | 188 cp install.sh ${tempdir} |
183 | 189 |
184 echo "Updating version number in README." | 190 echo "Updating version number in README" |
185 (cd ${tempdir} | 191 (cd ${tempdir} |
186 awk \ | 192 awk \ |
187 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 } | 193 '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 } |
188 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \ | 194 $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \ |
189 version=${version} README > tmp.README | 195 version=${version} README > tmp.README |
190 mv tmp.README README) | 196 mv tmp.README README) |
191 | 197 |
192 | 198 |
193 echo "Creating subdirectories." | 199 echo "Creating subdirectories" |
194 for subdir in lisp lisp/term site-lisp \ | 200 for subdir in lisp lisp/term site-lisp \ |
195 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ | 201 src src/m src/s src/bitmaps lib-src oldXMenu lwlib \ |
196 nt nt/inc nt/inc/sys \ | 202 nt nt/inc nt/inc/sys \ |
197 etc etc/e lock cpp info man msdos vms; do | 203 etc etc/e lock cpp info man msdos vms; do |
198 mkdir ${tempdir}/${subdir} | 204 mkdir ${tempdir}/${subdir} |
199 done | 205 done |
200 | 206 |
201 echo "Making links to \`lisp'." | 207 echo "Making links to \`lisp'" |
202 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. | 208 ### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el. |
203 (cd lisp | 209 (cd lisp |
204 ln [a-zA-Z]*.el ../${tempdir}/lisp | 210 ln [a-zA-Z]*.el ../${tempdir}/lisp |
205 ln [a-zA-Z]*.elc ../${tempdir}/lisp | 211 ln [a-zA-Z]*.elc ../${tempdir}/lisp |
206 ln [a-zA-Z]*.dat ../${tempdir}/lisp | 212 ln [a-zA-Z]*.dat ../${tempdir}/lisp |
213 rm -f site-init site-init.el site-init.elc | 219 rm -f site-init site-init.el site-init.elc |
214 rm -f site-load site-load.el site-load.elc | 220 rm -f site-load site-load.el site-load.elc |
215 rm -f site-start site-start.el site-start.elc | 221 rm -f site-start site-start.el site-start.elc |
216 rm -f default default.el default.elc) | 222 rm -f default default.el default.elc) |
217 | 223 |
218 #echo "Making links to \`lisp/calc-2.02'." | 224 #echo "Making links to \`lisp/calc-2.02'" |
219 #### Don't distribute =*.el files, TAGS or backups. | 225 #### Don't distribute =*.el files, TAGS or backups. |
220 #(cd lisp/calc-2.02 | 226 #(cd lisp/calc-2.02 |
221 # ln [a-zA-Z]*.el ../../${tempdir}/lisp/calc-2.02 | 227 # ln [a-zA-Z]*.el ../../${tempdir}/lisp/calc-2.02 |
222 # ln [a-zA-Z]*.elc ../../${tempdir}/lisp/calc-2.02 | 228 # ln [a-zA-Z]*.elc ../../${tempdir}/lisp/calc-2.02 |
223 # ln calc.info* calc.texinfo calc-refcard.* ../../${tempdir}/lisp/calc-2.02 | 229 # ln calc.info* calc.texinfo calc-refcard.* ../../${tempdir}/lisp/calc-2.02 |
224 # ln INSTALL Makefile README README.prev ../../${tempdir}/lisp/calc-2.02 | 230 # ln INSTALL Makefile README README.prev ../../${tempdir}/lisp/calc-2.02 |
225 # cd ../../${tempdir}/lisp/calc-2.02 | 231 # cd ../../${tempdir}/lisp/calc-2.02 |
226 # rm -f *~ TAGS) | 232 # rm -f *~ TAGS) |
227 | 233 |
228 echo "Making links to \`lisp/term'." | 234 echo "Making links to \`lisp/term'" |
229 ### Don't distribute =*.el files or TAGS. | 235 ### Don't distribute =*.el files or TAGS. |
230 (cd lisp/term | 236 (cd lisp/term |
231 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term | 237 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term |
232 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term | 238 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term |
233 ln README ../../${tempdir}/lisp/term | 239 ln README ../../${tempdir}/lisp/term |
234 rm -f =* TAGS) | 240 rm -f =* TAGS) |
235 | 241 |
236 echo "Making links to \`src'." | 242 echo "Making links to \`src'" |
237 ### Don't distribute =*.[ch] files, or the configured versions of | 243 ### Don't distribute =*.[ch] files, or the configured versions of |
238 ### config.in, paths.in, or Makefile.in, or TAGS. | 244 ### config.in, paths.in, or Makefile.in, or TAGS. |
239 (cd src | 245 (cd src |
240 echo " (If we can't link gmalloc.c, that's okay.)" | 246 echo " (If we can't link gmalloc.c, that's okay.)" |
241 ln [a-zA-Z]*.c ../${tempdir}/src | 247 ln [a-zA-Z]*.c ../${tempdir}/src |
250 ln *.opt vms-pp.trans ../${tempdir}/src | 256 ln *.opt vms-pp.trans ../${tempdir}/src |
251 cd ../${tempdir}/src | 257 cd ../${tempdir}/src |
252 rm -f config.h paths.h Makefile Makefile.c | 258 rm -f config.h paths.h Makefile Makefile.c |
253 rm -f =* TAGS) | 259 rm -f =* TAGS) |
254 | 260 |
255 echo "Making links to \`src/bitmaps'." | 261 echo "Making links to \`src/bitmaps'" |
256 (cd src/bitmaps | 262 (cd src/bitmaps |
257 ln README *.xbm ../../${tempdir}/src/bitmaps) | 263 ln README *.xbm ../../${tempdir}/src/bitmaps) |
258 | 264 |
259 echo "Making links to \`src/m'." | 265 echo "Making links to \`src/m'" |
260 (cd src/m | 266 (cd src/m |
261 # We call files for miscellaneous input (to linker etc) .inp. | 267 # We call files for miscellaneous input (to linker etc) .inp. |
262 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/m) | 268 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/m) |
263 | 269 |
264 echo "Making links to \`src/s'." | 270 echo "Making links to \`src/s'" |
265 (cd src/s | 271 (cd src/s |
266 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) | 272 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) |
267 | 273 |
268 echo "Making links to \`lib-src'." | 274 echo "Making links to \`lib-src'" |
269 (cd lib-src | 275 (cd lib-src |
270 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src | 276 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src |
271 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src | 277 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src |
272 ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src | 278 ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src |
273 cd ../${tempdir}/lib-src | 279 cd ../${tempdir}/lib-src |
274 rm -f getdate.tab.c y.tab.c y.tab.h Makefile.c | 280 rm -f getdate.tab.c y.tab.c y.tab.h Makefile.c |
275 rm -f =* TAGS) | 281 rm -f =* TAGS) |
276 | 282 |
277 echo "Making links to \`nt'." | 283 echo "Making links to \`nt'" |
278 (cd nt | 284 (cd nt |
279 ln emacs.ico emacs.rc config.nt config.w95 [a-z]*.in [a-z]*.c ../${tempdir}/nt | 285 ln emacs.ico emacs.rc config.nt config.w95 [a-z]*.in [a-z]*.c ../${tempdir}/nt |
280 ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt | 286 ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt |
281 ln TODO ChangeLog INSTALL README ../${tempdir}/nt) | 287 ln TODO ChangeLog INSTALL README ../${tempdir}/nt) |
282 | 288 |
283 echo "Making links to \`nt/inc'." | 289 echo "Making links to \`nt/inc'" |
284 (cd nt/inc | 290 (cd nt/inc |
285 ln [a-z]*.h ../../${tempdir}/nt/inc) | 291 ln [a-z]*.h ../../${tempdir}/nt/inc) |
286 | 292 |
287 echo "Making links to \`nt/inc/sys'." | 293 echo "Making links to \`nt/inc/sys'" |
288 (cd nt/inc/sys | 294 (cd nt/inc/sys |
289 ln [a-z]*.h ../../../${tempdir}/nt/inc/sys) | 295 ln [a-z]*.h ../../../${tempdir}/nt/inc/sys) |
290 | 296 |
291 echo "Making links to \`msdos'." | 297 echo "Making links to \`msdos'" |
292 (cd msdos | 298 (cd msdos |
293 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos | 299 ln ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos |
294 ln mainmake sed*.inp ../${tempdir}/msdos | 300 ln mainmake sed*.inp ../${tempdir}/msdos |
295 cd ../${tempdir}/msdos | 301 cd ../${tempdir}/msdos |
296 rm -f =*) | 302 rm -f =*) |
297 | 303 |
298 echo "Making links to \`oldXMenu'." | 304 echo "Making links to \`oldXMenu'" |
299 (cd oldXMenu | 305 (cd oldXMenu |
300 ln *.c *.h *.in ../${tempdir}/oldXMenu | 306 ln *.c *.h *.in ../${tempdir}/oldXMenu |
301 ln README Imakefile ChangeLog ../${tempdir}/oldXMenu | 307 ln README Imakefile ChangeLog ../${tempdir}/oldXMenu |
302 ln compile.com descrip.mms ../${tempdir}/oldXMenu) | 308 ln compile.com descrip.mms ../${tempdir}/oldXMenu) |
303 | 309 |
304 echo "Making links to \`lwlib'." | 310 echo "Making links to \`lwlib'" |
305 (cd lwlib | 311 (cd lwlib |
306 ln *.c *.h *.in ../${tempdir}/lwlib | 312 ln *.c *.h *.in ../${tempdir}/lwlib |
307 ln README Imakefile ChangeLog ../${tempdir}/lwlib) | 313 ln README Imakefile ChangeLog ../${tempdir}/lwlib) |
308 | 314 |
309 echo "Making links to \`etc'." | 315 echo "Making links to \`etc'" |
310 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or | 316 ### Don't distribute = files, TAGS, DOC files, backups, autosaves, or |
311 ### tex litter. | 317 ### tex litter. |
312 (cd etc | 318 (cd etc |
313 ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc | 319 ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc |
314 cd ../${tempdir}/etc | 320 cd ../${tempdir}/etc |
315 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core | 321 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core |
316 rm -f TAGS) | 322 rm -f TAGS) |
317 | 323 |
318 echo "Making links to \`etc/e'." | 324 echo "Making links to \`etc/e'" |
319 (cd etc/e | 325 (cd etc/e |
320 ln `ls -d * | grep -v 'RCS'` ../../${tempdir}/etc/e | 326 ln `ls -d * | grep -v 'RCS'` ../../${tempdir}/etc/e |
321 cd ../../${tempdir}/etc/e | 327 cd ../../${tempdir}/etc/e |
322 rm -f *~ \#*\# *,v =* core) | 328 rm -f *~ \#*\# *,v =* core) |
323 | 329 |
324 echo "Making links to \`cpp'." | 330 echo "Making links to \`cpp'" |
325 (cd cpp | 331 (cd cpp |
326 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp) | 332 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp) |
327 | 333 |
328 echo "Making links to \`info'." | 334 echo "Making links to \`info'" |
329 # Don't distribute backups or autosaves. | 335 # Don't distribute backups or autosaves. |
330 (cd info | 336 (cd info |
331 ln [a-zA-Z]* ../${tempdir}/info | 337 ln [a-zA-Z]* ../${tempdir}/info |
332 cd ../${tempdir}/info | 338 cd ../${tempdir}/info |
333 # Avoid an error when expanding the wildcards later. | 339 # Avoid an error when expanding the wildcards later. |
334 ln emacs dummy~ ; ln emacs \#dummy\# | 340 ln emacs dummy~ ; ln emacs \#dummy\# |
335 rm -f *~ \#*\# core) | 341 rm -f *~ \#*\# core) |
336 | 342 |
337 echo "Making links to \`man'." | 343 echo "Making links to \`man'" |
338 (cd man | 344 (cd man |
339 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man | 345 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man |
340 test -f README && ln README ../${tempdir}/man | 346 test -f README && ln README ../${tempdir}/man |
341 test -f Makefile.in && ln Makefile.in ../${tempdir}/man | 347 test -f Makefile.in && ln Makefile.in ../${tempdir}/man |
342 ln ChangeLog split-man ../${tempdir}/man | 348 ln ChangeLog split-man ../${tempdir}/man |
343 cp texinfo.tex ../${tempdir}/man | 349 cp texinfo.tex ../${tempdir}/man |
344 cd ../${tempdir}/man | 350 cd ../${tempdir}/man |
345 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail | 351 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail |
346 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux) | 352 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux) |
347 | 353 |
348 echo "Making links to \`vms'." | 354 echo "Making links to \`vms'" |
349 (cd vms | 355 (cd vms |
350 ln [0-9a-zA-Z]* ../${tempdir}/vms | 356 ln [0-9a-zA-Z]* ../${tempdir}/vms |
351 cd ../${tempdir}/vms | 357 cd ../${tempdir}/vms |
352 rm -f *~) | 358 rm -f *~) |
353 | 359 |
354 ### It would be nice if they could all be symlinks to etc's copy, but | 360 ### It would be nice if they could all be symlinks to etc's copy, but |
355 ### you're not supposed to have any symlinks in distribution tar files. | 361 ### you're not supposed to have any symlinks in distribution tar files. |
356 echo "Making sure copying notices are all copies of \`etc/COPYING'." | 362 echo "Making sure copying notices are all copies of \`etc/COPYING'" |
357 rm -f ${tempdir}/etc/COPYING | 363 rm -f ${tempdir}/etc/COPYING |
358 cp etc/COPYING ${tempdir}/etc/COPYING | 364 cp etc/COPYING ${tempdir}/etc/COPYING |
359 for subdir in lisp src lib-src info msdos; do | 365 for subdir in lisp src lib-src info msdos; do |
360 if [ -f ${tempdir}/${subdir}/COPYING ]; then | 366 if [ -f ${tempdir}/${subdir}/COPYING ]; then |
361 rm ${tempdir}/${subdir}/COPYING | 367 rm ${tempdir}/${subdir}/COPYING |
377 # -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \; | 383 # -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \; |
378 rm -f $tempdir/lib-src/alloca.c | 384 rm -f $tempdir/lib-src/alloca.c |
379 cp $tempdir/src/alloca.c $tempdir/lib-src/alloca.c | 385 cp $tempdir/src/alloca.c $tempdir/lib-src/alloca.c |
380 | 386 |
381 if [ "${newer}" ]; then | 387 if [ "${newer}" ]; then |
382 echo "Removing files older than $newer." | 388 echo "Removing files older than $newer" |
383 ## We remove .elc files unconditionally, on the theory that anyone picking | 389 ## We remove .elc files unconditionally, on the theory that anyone picking |
384 ## up an incremental distribution already has a running Emacs to byte-compile | 390 ## up an incremental distribution already has a running Emacs to byte-compile |
385 ## them with. | 391 ## them with. |
386 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \; | 392 find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \; |
387 fi | 393 fi |
388 | 394 |
389 if [ "${make_tar}" = yes ]; then | 395 if [ "${make_tar}" = yes ]; then |
390 if [ "${default_gzip}" = "" ]; then | 396 if [ "${default_gzip}" = "" ]; then |
391 echo "Looking for gzip." | 397 echo "Looking for gzip" |
392 temppath=`echo $PATH | sed 's/^:/.:/ | 398 temppath=`echo $PATH | sed 's/^:/.:/ |
393 s/::/:.:/g | 399 s/::/:.:/g |
394 s/:$/:./ | 400 s/:$/:./ |
395 s/:/ /g'` | 401 s/:/ /g'` |
396 default_gzip=`( | 402 default_gzip=`( |
402 fi | 408 fi |
403 case "${default_gzip}" in | 409 case "${default_gzip}" in |
404 compress* ) gzip_extension=.Z ;; | 410 compress* ) gzip_extension=.Z ;; |
405 * ) gzip_extension=.gz ;; | 411 * ) gzip_extension=.gz ;; |
406 esac | 412 esac |
407 echo "Creating tar file." | 413 echo "Creating tar file" |
408 (cd ${tempparent} ; tar cvf - ${emacsname} ) \ | 414 (cd ${tempparent} ; tar cvf - ${emacsname} ) \ |
409 | ${default_gzip} \ | 415 | ${default_gzip} \ |
410 > ${emacsname}.tar${gzip_extension} | 416 > ${emacsname}.tar${gzip_extension} |
411 fi | 417 fi |
412 | 418 |
413 if [ "${clean_up}" = yes ]; then | 419 if [ "${clean_up}" = yes ]; then |
414 echo "Cleaning up the staging directory." | 420 echo "Cleaning up the staging directory" |
415 rm -rf ${tempparent} | 421 rm -rf ${tempparent} |
416 else | 422 else |
417 (cd ${tempparent}; mv ${emacsname} ..) | 423 (cd ${tempparent}; mv ${emacsname} ..) |
418 rm -rf ${tempparent} | 424 rm -rf ${tempparent} |
419 fi | 425 fi |