head	1.1;
branch	1.1.1;
access;
symbols
	EMACS_21_3:1.1.1.30
	EMACS_21_2:1.1.1.29
	EMACS_21_1:1.1.1.28
	EMACS_21_0_106:1.1.1.28
	EMACS_21_0_105:1.1.1.27
	EMACS_21_0_103:1.1.1.26
	EMACS_20_7:1.1.1.25
	EMACS_20_6:1.1.1.25
	EMACS_20_5:1.1.1.25
	EMACS_20_4:1.1.1.25
	EMACS_20_3:1.1.1.24
	EMACS_20_2:1.1.1.23
	EMACS_20_1:1.1.1.23
	EMACS_19_34:1.1.1.22
	EMACS_19_33:1.1.1.22
	EMACS_19_32:1.1.1.21
	EMACS_19_31:1.1.1.20
	EMACS_19_30:1.1.1.19
	EMACS_19_29:1.1.1.18
	EMACS_19_28:1.1.1.17
	EMACS_19_27:1.1.1.17
	EMACS_19_26:1.1.1.17
	EMACS_19_25:1.1.1.16
	EMACS_19_24:1.1.1.15
	EMACS_19_23:1.1.1.15
	EMACS_19_22:1.1.1.14
	EMACS_19_21:1.1.1.13
	EMACS_19_20:1.1.1.12
	EMACS_19_19:1.1.1.11
	EMACS_19_18:1.1.1.10
	EMACS_19_17:1.1.1.9
	EMACS_19_16:1.1.1.8
	EMACS_19_15:1.1.1.8
	EMACS_19_14:1.1.1.8
	EMACS_19_13:1.1.1.7
	EMACS_19_12:1.1.1.6
	EMACS_19_11:1.1.1.5
	EMACS_19_10:1.1.1.4
	EMACS_19_9:1.1.1.3
	EMACS_19_8:1.1.1.2
	EMACS_19_7:1.1.1.1
	FSF_DIST:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2004.11.05.07.57.41;	author Ben Wing;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2004.11.05.07.57.41;	author Ben Wing;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.11.05.08.00.26;	author Ben Wing;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2004.11.05.08.03.23;	author Ben Wing;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2004.11.05.08.06.17;	author Ben Wing;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2004.11.05.08.09.13;	author Ben Wing;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2004.11.05.08.12.03;	author Ben Wing;	state Exp;
branches;
next	1.1.1.7;

1.1.1.7
date	2004.11.05.08.14.49;	author Ben Wing;	state Exp;
branches;
next	1.1.1.8;

1.1.1.8
date	2004.11.05.08.17.50;	author Ben Wing;	state Exp;
branches;
next	1.1.1.9;

1.1.1.9
date	2004.11.05.08.27.27;	author Ben Wing;	state Exp;
branches;
next	1.1.1.10;

1.1.1.10
date	2004.11.05.08.30.25;	author Ben Wing;	state Exp;
branches;
next	1.1.1.11;

1.1.1.11
date	2004.11.05.08.33.58;	author Ben Wing;	state Exp;
branches;
next	1.1.1.12;

1.1.1.12
date	2004.11.05.08.37.17;	author Ben Wing;	state Exp;
branches;
next	1.1.1.13;

1.1.1.13
date	2004.11.05.08.40.51;	author Ben Wing;	state Exp;
branches;
next	1.1.1.14;

1.1.1.14
date	2004.11.05.08.44.03;	author Ben Wing;	state Exp;
branches;
next	1.1.1.15;

1.1.1.15
date	2004.11.05.08.47.17;	author Ben Wing;	state Exp;
branches;
next	1.1.1.16;

1.1.1.16
date	2004.11.05.08.55.22;	author Ben Wing;	state Exp;
branches;
next	1.1.1.17;

1.1.1.17
date	2004.11.05.08.58.51;	author Ben Wing;	state Exp;
branches;
next	1.1.1.18;

1.1.1.18
date	2004.11.05.09.09.59;	author Ben Wing;	state Exp;
branches;
next	1.1.1.19;

1.1.1.19
date	2004.11.05.09.15.25;	author Ben Wing;	state Exp;
branches;
next	1.1.1.20;

1.1.1.20
date	2004.11.05.09.21.03;	author Ben Wing;	state Exp;
branches;
next	1.1.1.21;

1.1.1.21
date	2004.11.05.09.27.57;	author Ben Wing;	state Exp;
branches;
next	1.1.1.22;

1.1.1.22
date	2004.11.05.09.33.16;	author Ben Wing;	state Exp;
branches;
next	1.1.1.23;

1.1.1.23
date	2004.11.05.09.42.45;	author Ben Wing;	state Exp;
branches;
next	1.1.1.24;

1.1.1.24
date	2004.11.05.09.55.29;	author Ben Wing;	state Exp;
branches;
next	1.1.1.25;

1.1.1.25
date	2004.11.05.10.03.24;	author Ben Wing;	state Exp;
branches;
next	1.1.1.26;

1.1.1.26
date	2004.11.05.10.29.43;	author Ben Wing;	state Exp;
branches;
next	1.1.1.27;

1.1.1.27
date	2004.11.05.10.39.19;	author Ben Wing;	state Exp;
branches;
next	1.1.1.28;

1.1.1.28
date	2004.11.05.10.49.46;	author Ben Wing;	state Exp;
branches;
next	1.1.1.29;

1.1.1.29
date	2004.11.05.11.06.29;	author Ben Wing;	state Exp;
branches;
next	1.1.1.30;

1.1.1.30
date	2004.11.05.11.14.50;	author Ben Wing;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh

#### make-dist: create an Emacs distribution tar file from the current
#### source tree.  This basically creates a duplicate directory
#### structure, and then hard links into it only those files that should
#### be distributed.  This means that if you add a file with an odd name,
#### you should make sure that this script will include it.

progname="$0"

### Exit if a command fails.
### set -e

### Print out each line we read, for debugging's sake.
### set -v

clean_up=yes
make_tar=yes
newer=""

while [ $# -gt 0 ]; do
  case "$1" in
    ## This option tells make-dist not to delete the staging directory
    ## after it's done making the tar file.
    "--no-clean-up" )
      clean_up=no
    ;;
    ## This option tells make-dist not to make a tar file.  Since it's 
    ## rather pointless to build the whole staging directory and then
    ## nuke it, using this option also selects '--no-clean-up'.
    "--no-tar" )
      make_tar=no
      clean_up=no
    ;;
    ## This option tells make-dist to make the distribution normally, then
    ## remove all files older than the given timestamp file.  This is useful
    ## for creating incremental or patch distributions.
    "--newer")
      newer="$2"
      new_extension=".new"
      shift
    ;;
    ## This option tells make-dist to use `compress' instead of gzip.
    ## Normally, make-dist uses gzip whenever it is present.
    "--compress")
      default_gzip="compress"
    ;;
    * )
      echo "${progname}: Unrecognized argument: $1" >&2
      exit 1
    ;;
  esac
  shift
done

### Make sure we're running in the right place.
if [ ! -d src -o ! -f src/lisp.h -o ! -d lisp -o ! -f lisp/version.el ]; then
  echo "${progname}: Can't find \`src/lisp.h' and \`lisp/version.el'." >&2
  echo "${progname} must be run in the top directory of the Emacs" >&2
  echo "distribution tree.  Cd to that directory and try again." >&2
  exit 1
fi

### Find out which version of Emacs this is.
version=`grep 'defconst[	 ]*emacs-version' lisp/version.el \
	 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
if [ ! "${version}" ]; then
  echo "${progname}: can't find current emacs version in \`./lisp/version.el'." >&2
  exit 1
fi

if grep -s "GNU Emacs version ${version}" ./man/emacs.texi > /dev/null; then
  true
else
  echo "You must update the version number in \`./man/emacs.texi'"
  exit 1
fi

### Make sure the subdirectory is available.
tempparent="make-dist.tmp.$$"
if [ -d ${tempparent} ]; then
  echo "${progname}: staging directory \`${tempparent}' already exists.
Perhaps a previous invocation of \`${progname}' failed to clean up after
itself.  Check that directories whose names are of the form
\`make-dist.tmp.NNNNN' don't contain any important information, remove
them, and try again." >&2
  exit 1
fi

echo "Creating staging directory: \`${tempparent}'"
mkdir ${tempparent}
emacsname="emacs-${version}${new_extension}"
tempdir="${tempparent}/${emacsname}"

### This trap ensures that the staging directory will be cleaned up even
### when the script is interrupted in mid-career.
if [ "${clean_up}" = yes ]; then
  trap "echo 'Interrupted...cleaning up the staging directory.'; rm -rf ${tempparent}; exit 1" 1 2 15
fi

echo "Creating top directory: \`${tempdir}'"
mkdir ${tempdir}

### We copy in the top-level files before creating the subdirectories in
### hopes that this will make the top-level files appear first in the
### tar file; this means that people can start reading the INSTALL and
### README while the rest of the tar file is still unpacking.  Whoopee.
echo "Making links to top-level files." 
ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
ln ChangeLog Makefile.in build-install.in configure configure.in ${tempdir}
ln make-dist ${tempdir}
### Copy config.sub; it's a cross-filesystem symlink.
cp config.sub ${tempdir}

echo "Updating version number in README."
(cd ${tempdir}
 awk \
   '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 }
    $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \
   version=${version} README > tmp.README
 mv tmp.README README)


echo "Creating subdirectories."
# I think we're not going to distribute anything in external-lisp, so
# I've removed it from this list.
for subdir in lisp lisp/term local-lisp \
	      src src/m src/s src/bitmaps lib-src oldXMenu \
	      etc lock cpp info man shortnames vms; do
  mkdir ${tempdir}/${subdir}
done

echo "Making links to \`lisp'."
### Don't distribute TAGS, =*.el files, site-init.el, site-load.el, or default.el.
(cd lisp
 ln [a-zA-Z]*.el ../${tempdir}/lisp
 ln [a-zA-Z]*.elc ../${tempdir}/lisp
 ## simula.el doesn't keep abbreviations in simula.defns any more.
 ## ln [a-zA-Z]*.defns ../${tempdir}/lisp
 ln ChangeLog README ../${tempdir}/lisp
 cd ../${tempdir}/lisp
 rm -f TAGS =*
 rm -f site-init site-init.el site-init.elc
 rm -f site-load site-load.el site-load.elc
 rm -f default default.el default.elc)

#echo "Making links to \`lisp/calc-2.02'."
#### Don't distribute =*.el files, TAGS or backups.
#(cd lisp/calc-2.02
# ln [a-zA-Z]*.el ../../${tempdir}/lisp/calc-2.02
# ln [a-zA-Z]*.elc ../../${tempdir}/lisp/calc-2.02
# ln calc.info* calc.texinfo calc-refcard.* ../../${tempdir}/lisp/calc-2.02
# ln INSTALL Makefile README README.prev ../../${tempdir}/lisp/calc-2.02
# cd ../../${tempdir}/lisp/calc-2.02
# rm -f *~ TAGS)

echo "Making links to \`lisp/term'."
### Don't distribute =*.el files or TAGS.
(cd lisp/term
 ln [a-zA-Z]*.el ../../${tempdir}/lisp/term
 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/term
 ln README ChangeLog ../../${tempdir}/lisp/term
 rm -f =* TAGS)

### echo "Making links to \`external-lisp'."
### ### Don't distribute =*.el files or TAGS.
### (cd external-lisp
###  ln [a-zA-Z]*.el ../${tempdir}/external-lisp
###  ln [a-zA-Z]*.elc ../${tempdir}/external-lisp
###  ln ChangeLog README ../${tempdir}/external-lisp
###  rm -f =* TAGS)

echo "Making links to \`src'."
### Don't distribute =*.[ch] files, or the configured versions of
### config.h.in, paths.h.in, or Makefile.in, or TAGS.
(cd src
 echo "  (If we can't link gmalloc.c, that's okay.)"
 ln [a-zA-Z]*.c ../${tempdir}/src
 ## Might be a symlink to a file on another filesystem.
 test -f ../${tempdir}/src/gmalloc.c || cp gmalloc.c ../${tempdir}/src
 ln [a-zA-Z]*.h ../${tempdir}/src
 ln [a-zA-Z]*.s ../${tempdir}/src
 ln README Makefile.in ymakefile ChangeLog config.h.in paths.h.in \
    ../${tempdir}/src
 ln .gdbinit .dbxinit ../${tempdir}/src
 ln *.opt vms-pp.trans ../${tempdir}/src
 cd ../${tempdir}/src
 rm -f config.h paths.h Makefile
 if [ -z "${newer}" ]; then
   etags *.h *.c ../lisp/*.el
 fi
 rm -f =* TAGS)

echo "Making links to \`src/bitmaps'."
(cd src/bitmaps
 ln README *.xbm ../../${tempdir}/src/bitmaps)

echo "Making links to \`src/m'."
(cd src/m
 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m)

echo "Making links to \`src/s'."
(cd src/s
 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)

echo "Making links to \`lib-src'."
(cd lib-src
 ln [a-zA-Z]*.[chy] [a-zA-Z]*.lex ../${tempdir}/lib-src
 ln ChangeLog Makefile.in README testfile vcdiff rcs2log ../${tempdir}/lib-src
 ln emacs.csh rcs-checkin ../${tempdir}/lib-src
 cd ../${tempdir}/lib-src
 rm -f getdate.c getdate.tab.c y.tab.c y.tab.h
 rm -f =* TAGS)

echo "Making links to \`oldXMenu'."
(cd oldXMenu
 ln *.c *.h *.in ../${tempdir}/oldXMenu
 ln README Imakefile ChangeLog ../${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.
(cd etc
 ln `ls -d * | grep -v 'RCS' | grep -v 'Old'` ../${tempdir}/etc
 cd ../${tempdir}/etc
 rm -f DOC* *~ \#*\# *.dvi *.log *,v =* core
 rm -f TAGS)

echo "Making links to \`cpp'."
(cd cpp
 ln cccp.c cexp.y Makefile README ../${tempdir}/cpp)

echo "Making links to \`info'."
# Don't distribute backups or autosaves.
(cd info
 ln [a-zA-Z]* ../${tempdir}/info
 cd ../${tempdir}/info
 # Avoid an error when expanding the wildcards later.
 ln emacs dummy~ ; ln emacs \#dummy\#
 rm -f *~ \#*\# core)

echo "Making links to \`man'."
(cd man
 ln *.texinfo *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
 test -f README && ln README ../${tempdir}/man
 test -f Makefile && ln Makefile ../${tempdir}/man
 ln ChangeLog split-man ../${tempdir}/man
 cp texinfo.tex texindex.c ../${tempdir}/man
 cd ../${tempdir}/man
 rm -f \#*\# =* *~ core emacs-index* *.Z *.z xmail
 rm -f emacs.?? termcap.?? gdb.?? *.log *.toc *.dvi *.oaux)

echo "Making links to \`shortnames'."
(cd shortnames
 ln *.c ../${tempdir}/shortnames
 ln Makefile reserved special ../${tempdir}/shortnames)

echo "Making links to \`vms'."
(cd vms
 ln [0-9a-zA-Z]* ../${tempdir}/vms
 cd ../${tempdir}/vms
 rm -f *~)

### It would be nice if they could all be symlinks to etc's copy, but
### you're not supposed to have any symlinks in distribution tar files.
echo "Making sure copying notices are all copies of \`etc/COPYING'."
rm -f ${tempdir}/etc/COPYING
cp etc/COPYING ${tempdir}/etc/COPYING
# I think we're not going to distribute anything in external-lisp, so
# I've removed it from this list.
for subdir in lisp src lib-src info shortnames; do
  if [ -f ${tempdir}/${subdir}/COPYING ]; then
    rm ${tempdir}/${subdir}/COPYING
  fi
  cp etc/COPYING ${tempdir}/${subdir}
done

if [ "${newer}" ]; then
  echo "Removing files older than $newer."
  ## We remove .elc files unconditionally, on the theory that anyone picking
  ## up an incremental distribution already has a running Emacs to byte-compile
  ## them with.
  find ${tempparent} \( -name '*.elc' -o ! -newer ${newer} \) -exec rm -f {} \;
fi

if [ "${make_tar}" = yes ]; then
  if [ "${default_gzip}" = "" ]; then
    echo "Looking for gzip."
    temppath=`echo $PATH | sed 's/^:/.:/
				s/::/:.:/g
				s/:$/:./
				s/:/ /g'`
    default_gzip=`(
      for dir in ${temppath}; do
	if [ -f ${dir}/gzip ]; then echo 'gzip --best'; exit 0; fi
      done
      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${gzip_extension}
fi

if [ "${clean_up}" = yes ]; then
  echo "Cleaning up the staging directory."
  rm -rf ${tempparent}
fi

### make-dist ends here
@


1.1.1.1
log
@import emacs-19.7
@
text
@@


1.1.1.2
log
@import emacs-19.8
@
text
@a278 8
#### Make sure that there aren't any hard links between files in the
#### distribution; people with afs can't deal with that.  Okay,
#### actually we just re-copy anything with a link count greater
#### than two.
echo "Breaking intra-tree links."
find ${tempdir} ! -type d -links +2 \
  -exec cp {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;

@


1.1.1.3
log
@import emacs-19.9
@
text
@a89 10
### Check for .elc files with no corresponding .el file.
ls -1 lisp/*.el | sed 's/\.el$/.elc/' > /tmp/el
ls -1 lisp/*.elc > /tmp/elc
bogosities="`comm -13 /tmp/el /tmp/elc`"
if [ "${bogosities}" != "" ]; then
  echo "The following .elc files have no corresponding .el files:"
  echo "${bogosities}"
fi
rm -f /tmp/el /tmp/elc

@


1.1.1.4
log
@import emacs-19.10
@
text
@a99 7
### Make sure configure is newer than configure.in.
if [ "x`ls -t configure configure.in | head -1`" != "xconfigure" ]; then
  echo "`./configure.in' seems to be newer than `./configure.'" >&2
  echo "Attempting to run autoconf." >&2
  autoconf
fi

d137 1
a137 1
for subdir in lisp lisp/term site-lisp \
@


1.1.1.5
log
@import emacs-19.11
@
text
@a106 3
### Update getdate.c.
(cd lib-src; make -f Makefile.in getdate.c)

d129 1
a129 1
### Copy config.guess and config.sub; they're cross-filesystem symlinks.
a130 1
cp config.guess ${tempdir}
@


1.1.1.6
log
@import emacs-19.12
@
text
@d76 1
a76 1
  sleep 5
@


1.1.1.7
log
@import emacs-19.13
@
text
@d148 1
a148 1
for subdir in lisp lisp/term lisp/forms-mode site-lisp \
a185 7
echo "Making links to \`lisp/forms-mode'."
(cd lisp/forms-mode
 ln [a-zA-Z]*.el ../../${tempdir}/lisp/forms-mode
 ln [a-zA-Z]*.elc ../../${tempdir}/lisp/forms-mode
 ln forms.README forms-d2.dat ../../${tempdir}/lisp/forms-mode
 rm -f =* TAGS)

@


1.1.1.8
log
@import emacs-19.14
@
text
@a158 1
 ln [a-zA-Z]*.dat forms.README ../${tempdir}/lisp
d183 8
a190 1
 ln README ../../${tempdir}/lisp/term
d339 1
a339 1
    * )         gzip_extension=.gz ;;
@


1.1.1.9
log
@import emacs-19.17
@
text
@d148 1
a148 1
for subdir in lisp lisp/term site-lisp \
@


1.1.1.10
log
@import emacs-19.18
@
text
@d60 1
a60 1
  echo "distribution tree.  cd to that directory and try again." >&2
d162 1
a162 1
 ln ChangeLog OChangeLog README dired.todo ../${tempdir}/lisp
d205 1
a205 1
 ln README Makefile.in ymakefile ChangeLog OChangeLog config.h.in paths.h.in \
@


1.1.1.11
log
@import emacs-19.19
@
text
@d234 1
a234 1
 rm -f getdate.tab.c y.tab.c y.tab.h
@


1.1.1.12
log
@import emacs-19.20
@
text
@d102 1
a102 1
  echo "\`./configure.in' seems to be newer than \`./configure.'" >&2
d108 1
a108 1
(cd lib-src; make -f Makefile.in getdate.c YACC="bison -y")
d130 2
a131 2
ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir}
ln make-dist vpath.sed ${tempdir}
d197 1
a197 1
### config.h.in, paths.h.in, or Makefile.in.in, or TAGS.
d205 1
a205 1
 ln README Makefile.in.in ChangeLog OChangeLog config.h.in paths.h.in \
d211 3
d267 1
a267 1
 ln *.texi *.aux *.cps *.fns *.kys *.vrs ../${tempdir}/man
@


1.1.1.13
log
@import emacs-19.21
@
text
@d159 1
a159 1
 ln [a-zA-Z]*.dat ../${tempdir}/lisp
@


1.1.1.14
log
@import emacs-19.22
@
text
@a78 10
### Make sure we don't already have a directory  emacs-${version}.

emacsname="emacs-${version}${new_extension}"

if [ -d ${emacsname} ]
then
  echo Directory "${emacsname}" already exists >&2
  exit 1
fi

a110 1

d112 1
d132 1
a132 1
### Copy these files; they're cross-filesystem symlinks.
a134 1
cp install.sh ${tempdir}
d304 1
a304 1
  -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
a340 3
else
  (cd ${tempparent}; mv ${emacsname} ..)
  rm -rf ${tempparent}
@


1.1.1.15
log
@import emacs-19.23
@
text
@d65 1
a65 1
shortversion=`grep 'defconst[	 ]*emacs-version' lisp/version.el \
a66 2
version=`grep 'defconst[	 ]*emacs-version' lisp/version.el \
	 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
d68 1
a68 1
  echo "${progname}: can't find current Emacs version in \`./lisp/version.el'." >&2
d72 1
a72 1
if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
d118 1
a118 1
(cd lib-src; make -f Makefile getdate.c YACC="bison -y")
d141 1
a141 1
ln config.bat make-dist vpath.sed ${tempdir}
d160 2
a161 2
	      src src/m src/s src/bitmaps lib-src oldXMenu lwlib \
	      etc lock cpp info man msdos shortnames vms; do
d173 1
a173 1
 ln ChangeLog Makefile ChangeLog.? README dired.todo ../${tempdir}/lisp
d216 1
a216 1
 ln README Makefile.in.in ChangeLog ChangeLog.? config.h.in paths.h.in \
d239 2
a240 2
 ln ChangeLog Makefile.in.in README testfile vcdiff ../${tempdir}/lib-src
 ln emacs.csh rcs2log rcs-checkin ../${tempdir}/lib-src
a244 7
echo "Making links to \`msdos'."
(cd msdos
 ln  ChangeLog emacs.ico emacs.pif ../${tempdir}/msdos
 ln mainmake sed[123].inp ../${tempdir}/msdos
 cd ../${tempdir}/msdos
 rm -f =*)

a250 5
echo "Making links to \`lwlib'."
(cd lwlib
 ln *.c *.h *.in ../${tempdir}/lwlib
 ln README Imakefile ChangeLog ../${tempdir}/lwlib)

d279 1
a279 1
 cp texinfo.tex texindex.c getopt.c ../${tempdir}/man
d300 3
a302 1
for subdir in lisp src lib-src info shortnames msdos; do
@


1.1.1.16
log
@import emacs-19.25
@
text
@d66 1
a66 1
	 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
a73 2
echo $version and $shortversion

@


1.1.1.17
log
@import emacs-19.26
@
text
@a123 9
echo "Updating Info files."

(cd man; make info)

echo "Updating finder-inf.el."

### update finder-inf.el.
(cd src; emacs -batch -l finder -f finder-compile-keywords)

d143 1
a143 1
ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README BUGS move-if-change ${tempdir}
d234 1
a234 2
 # We call files for miscellaneous input (to linker etc) .inp.
 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/m)
d238 1
a238 1
 ln README [a-zA-Z0-9]*.h *.inp ../../${tempdir}/src/s)
d252 1
a252 1
 ln mainmake sed[1234].inp ../${tempdir}/msdos
@


1.1.1.18
log
@import emacs-19.29
@
text
@a8 18
# Copyright (C) 1995 Free Software Foundation, Inc.
#
# This file is part of GNU Emacs.
#
# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.

d153 2
a154 2
ln ChangeLog Makefile.in configure configure.in ${tempdir}
ln config.bat make-dist update-subdirs vpath.sed ${tempdir}
a155 1
cp mkinstalldirs ${tempdir}
d170 2
d174 1
a174 2
	      nt nt/inc nt/inc/sys \
	      etc etc/e lock cpp info man msdos vms; do
d186 1
a186 1
 ln ChangeLog Makefile makefile.nt ChangeLog.? README dired.todo ../${tempdir}/lisp
d211 8
a230 1
 ln makefile.nt ../${tempdir}/src
d248 1
a248 1
 ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s)
d252 1
a252 1
 ln [a-zA-Z]*.[chy] ../${tempdir}/lib-src
d254 1
a254 1
 ln emacs.csh rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
a258 14
echo "Making links to \`nt'."
(cd nt
 ln emacs.ico emacs.rc config.nt config.w95 [a-z]*.in [a-z]*.c ../${tempdir}/nt
 ln [a-z]*.bat [a-z]*.h makefile.def makefile.nt ../${tempdir}/nt
 ln todo ChangeLog install readme ../${tempdir}/nt)

echo "Making links to \`nt/inc'."
(cd nt/inc
 ln [a-z]*.h ../../${tempdir}/nt/inc)

echo "Making links to \`nt/inc/sys'."
(cd nt/inc/sys
 ln [a-z]*.h ../../../${tempdir}/nt/inc/sys)

d262 1
a262 1
 ln mainmake sed*.inp ../${tempdir}/msdos
d281 1
a281 1
 ln `ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'` ../${tempdir}/etc
a285 6
echo "Making links to \`etc/e'."
(cd etc/e
 ln `ls -d * | grep -v 'RCS'` ../../${tempdir}/etc/e
 cd ../../${tempdir}/etc
 rm -f *~ \#*\# *,v =* core)

d303 1
a303 1
 test -f Makefile.in && ln Makefile.in ../${tempdir}/man
d305 1
a305 1
 cp texinfo.tex ../${tempdir}/man
d310 5
d326 1
a326 1
for subdir in lisp src lib-src info msdos; do
d336 1
a336 3
#### than two.  (Yes, strictly greater than 2 is correct; since we
#### created these files by linking them in from the original tree,
#### they'll have exactly two links normally.)
@


1.1.1.19
log
@import emacs-19.30
@
text
@d149 1
a149 6
(cd lisp; ../src/emacs -batch -l finder -f finder-compile-keywords)
(cd lisp; ../src/emacs -batch -f batch-byte-compile finder-inf.el)

echo "Making lisp/MANIFEST"

(cd lisp; head -1 *.el | grep '^;' | sed -e 's/;;; //' > MANIFEST)
a206 1
 rm -f subdirs.el
a208 1
 rm -f site-start site-start.el site-start.elc
d231 1
a231 1
### config.in, paths.in, or Makefile.in, or TAGS.
d239 1
a239 1
 ln README Makefile.in ChangeLog ChangeLog.? config.in paths.in \
d245 1
a245 1
 rm -f config.h paths.h Makefile Makefile.c
d264 1
a264 1
 ln ChangeLog Makefile.in README testfile vcdiff ../${tempdir}/lib-src
d267 1
a267 1
 rm -f getdate.tab.c y.tab.c y.tab.h Makefile.c
d274 1
a274 1
 ln TODO ChangeLog INSTALL README ../${tempdir}/nt)
d308 1
a308 1
 rm -f DOC* *~ \#*\# *.dvi *.log *.orig *.rej *,v =* core
d314 1
a314 1
 cd ../../${tempdir}/etc/e
d365 3
a367 8
####
#### Commented out since it's not stricly necessary; it should suffice
#### to just break the link on alloca.c.
#echo "Breaking intra-tree links."
#find ${tempdir} ! -type d -links +2 \
#  -exec cp -p {} $$ \; -exec rm -f {} \; -exec mv $$ {} \;
rm -f $tempdir/lib-src/alloca.c
cp $tempdir/src/alloca.c $tempdir/lib-src/alloca.c
@


1.1.1.20
log
@import emacs-19.31
@
text
@d35 2
a36 2
clean_up=no
make_tar=no
d41 4
a44 4
    ## This option tells make-dist to delete the staging directory
    ## when done.  It is useless to use this unless you make a tar file.
    "--clean-up" )
      clean_up=yes
d46 6
a51 3
    ## This option tells make-dist to make a tar file.
    "--tar" )
      make_tar=yes
d88 1
a88 1
  echo "${progname}: can't find current Emacs version in \`./lisp/version.el'" >&2
d92 1
a92 1
echo Version numbers are $version and $shortversion
d134 3
a136 3
  echo "\`./configure.in' is newer than \`./configure'" >&2
  echo "Running autoconf" >&2
  autoconf || { x=$?; echo Autoconf FAILED! >&2; exit $x; }
d142 1
a142 1
echo "Updating Info files"
d146 1
a146 1
echo "Updating finder-inf.el"
d148 3
a150 9
(cd lisp; ../src/emacs -batch -l finder -f finder-compile-keywords-make-dist)

echo "Recompiling Lisp files"

src/emacs -batch -f batch-byte-recompile-directory lisp

echo "Updating autoloads"

src/emacs -batch -f batch-update-autoloads lisp
d154 1
a154 1
(cd lisp; head -1 [!=]*.el | grep '^;' | sed -e 's/;;; //' > MANIFEST)
d164 1
a164 1
  trap "echo 'Interrupted...cleaning up the staging directory'; rm -rf ${tempparent}; exit 1" 1 2 15
d174 1
a174 1
echo "Making links to top-level files"
d184 1
a184 1
echo "Updating version number in README"
d193 1
a193 1
echo "Creating subdirectories"
d196 1
a196 1
	      nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet \
d201 1
a201 1
echo "Making links to \`lisp'"
d209 1
a209 1
 ln ChangeLog Makefile makefile.nt ChangeLog.? README ../${tempdir}/lisp
d218 1
a218 1
#echo "Making links to \`lisp/calc-2.02'"
d228 1
a228 1
echo "Making links to \`lisp/term'"
d236 1
a236 1
echo "Making links to \`src'"
d255 1
a255 1
echo "Making links to \`src/bitmaps'"
d259 1
a259 1
echo "Making links to \`src/m'"
d264 1
a264 1
echo "Making links to \`src/s'"
d268 1
a268 1
echo "Making links to \`lib-src'"
d277 1
a277 1
echo "Making links to \`nt'"
d279 1
a279 1
 ln emacs.ico emacs.rc config.nt [a-z]*.in [a-z]*.c ../${tempdir}/nt
d283 1
a283 1
echo "Making links to \`nt/inc'"
d287 1
a287 1
echo "Making links to \`nt/inc/sys'"
d291 1
a291 9
echo "Making links to \`nt/inc/arpa'"
(cd nt/inc/arpa
 ln [a-z]*.h ../../../${tempdir}/nt/inc/arpa)

echo "Making links to \`nt/inc/netinet'"
(cd nt/inc/netinet
 ln [a-z]*.h ../../../${tempdir}/nt/inc/netinet)

echo "Making links to \`msdos'"
d294 1
a294 1
 ln mainmake mainmake.v2 sed*.inp ../${tempdir}/msdos
d298 1
a298 1
echo "Making links to \`oldXMenu'"
d304 1
a304 1
echo "Making links to \`lwlib'"
d307 1
a307 3
 ln README Imakefile ChangeLog ../${tempdir}/lwlib
 cd ../${tempdir}/lwlib
 rm -f lwlib-Xol*)
d309 1
a309 1
echo "Making links to \`etc'"
d318 1
a318 1
echo "Making links to \`etc/e'"
d324 1
a324 1
echo "Making links to \`cpp'"
d328 1
a328 1
echo "Making links to \`info'"
d337 1
a337 1
echo "Making links to \`man'"
d348 1
a348 1
echo "Making links to \`vms'"
d356 1
a356 1
echo "Making sure copying notices are all copies of \`etc/COPYING'"
d373 1
a373 1
#### Commented out since it's not strictly necessary; it should suffice
d382 1
a382 1
  echo "Removing files older than $newer"
d391 1
a391 1
    echo "Looking for gzip"
d407 1
a407 1
  echo "Creating tar file"
d414 1
a414 1
  echo "Cleaning up the staging directory"
@


1.1.1.21
log
@import emacs-19.32
@
text
@d24 2
a25 3
# along with GNU Emacs; see the file COPYING.  If not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
a128 7
### Check for .el files that would overflow the 14-char limit if compiled.
long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print`
if [ "$long" != "" ]; then
  echo "The following .el file names are too long:"
  echo "$long"
fi

d136 3
@


1.1.1.22
log
@import emacs-19.33
@
text
@d310 1
a310 1
 ln is_exec.c sigaction.c mainmake mainmake.v2 sed*.inp ../${tempdir}/msdos
@


1.1.1.23
log
@import emacs-20.1
@
text
@d9 1
a9 1
# Copyright (C) 1995, 1997 Free Software Foundation, Inc.
a35 4
## Don't protect any files.
umask 0

update=yes
a50 4
    ## This option tells make-dist not to recompile or do analogous things.
    "--no-update" )
      update=no
    ;;
a79 15
### Find where to run Emacs.
if [ $update = yes ];
then
  if [ -f src/emacs ];
  then
    EMACS=`pwd`/src/emacs
  else
    if [ x$EMACS = x ];
    then 
      echo You must specify the EMACS environment variable 2>&1
      exit 1
    fi
  fi
fi

d92 5
a96 8
if [ $update = yes ];
then
  if grep -s "GNU Emacs version ${shortversion}" ./man/emacs.texi > /dev/null; then
    true
  else
    echo "You must update the version number in \`./man/emacs.texi'"
    sleep 5
  fi
d121 2
a122 2
ls -1 {lisp,leim}/[a-z]*.el {lisp,leim}/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
ls -1 {lisp,leim}/[a-z]*.elc {lisp,leim}/[a-z]*/[a-z]*.elc > /tmp/elc
a129 27
### Check for .el files with no corresponding .elc file.
((cd lisp; ls -1 [a-z]*.el [a-z]*/[a-z]*.el)
 (cd leim; ls -1 [a-z]*.el [a-z]*/[a-z]*.el)) > /tmp/el
((cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc)
 (cd leim; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc)) | sed 's/\.elc$/.el/' > /tmp/elc
losers="`comm -23 /tmp/el /tmp/elc`"
bogosities=
for file in $losers; do
  file1=`echo $file | sed -e "s|.*/||"`
  if ! grep -q "dontcompilefiles:.* $file1\($\| \)" lisp/Makefile; then
    case $file in
      site-init.el | site-load.el | site-start.el | default.el)
        ;;
      term/*)
        ;;
      *)
        bogosities="$file $bogosities"
	;;
    esac
  fi
done
if [ x"${bogosities}" != x"" ]; then
  echo "The following .el files have no corresponding .elc files:"
  echo "${bogosities}"
fi
rm -f /tmp/el /tmp/elc

d131 1
a131 2
long=`find lisp -name '[a-zA-Z0-9]??????????*.el' -print
      find leim -name '[a-zA-Z0-9]??????????*.el' -print`
d144 1
a144 3
if [ $update = yes ];
then
  echo "Updating Info files"
d146 1
a146 1
  (cd man; make info)
d148 1
a148 1
  echo "Updating finder, custom and autoload data"
d150 1
a150 1
  (cd lisp; make updates EMACS=$EMACS)
d152 1
a152 1
  echo "Updating leim-list.el"
d154 1
a154 1
  (cd leim; make leim-list.el EMACS=$EMACS)
d156 1
a156 1
  echo "Recompiling Lisp files"
d158 1
a158 2
  $EMACS -batch -f batch-byte-recompile-directory lisp leim
fi
d202 1
a202 2
for subdir in lisp site-lisp leim real-leim real-leim/CXTERM-DIC \
	      real-leim/SKK-DIC real-leim/skk real-leim/quail \
d209 1
a209 4
echo "Initializing \`leim' subdirectory"
cp leim-Makefile.in ${tempdir}/leim/Makefile.in

echo "Making links to \`lisp' and its subdirectories"
d218 25
a242 50
 (cd ../${tempdir}/lisp
  rm -f TAGS =*
  rm -f site-init site-init.el site-init.elc
  rm -f site-load site-load.el site-load.elc
  rm -f site-start site-start.el site-start.elc
  rm -f default default.el default.elc
  )

 ## Find all subdirs of lisp dir
 for file in `find . -type d -print`; do
   case $file in
     . | .. | */Old | */RCS | */=*)
       ;;	
     *)
       if [ -d $file ]; then
	 subdirs="$file $subdirs"
       fi
       ;;
   esac
 done

 for file in $subdirs; do
   echo "  lisp/$file"
   mkdir ../${tempdir}/lisp/$file
   ln $file/[a-zA-Z]*.el ../${tempdir}/lisp/$file
   ln $file/[a-zA-Z]*.elc ../${tempdir}/lisp/$file
   if [ -f $file/README ]; then
     ln $file/README ../${tempdir}/lisp/$file
   fi
 done )

echo "Making links to \`leim' and its subdirectories for the LEIM distribution"
### Don't distribute TAGS, or =*.el files.
(cd leim
 ln Makefile.in makefile.nt ../${tempdir}/real-leim
 ln ChangeLog README ../${tempdir}/real-leim

 ln CXTERM-DIC/*.tit ../${tempdir}/real-leim/CXTERM-DIC
 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/real-leim/SKK-DIC
 ln skk/*.el skk/*.elc ../${tempdir}/real-leim/skk
 ln quail/*.el quail/*.elc ../${tempdir}/real-leim/quail

 cd ../${tempdir}/real-leim
 rm -f TAGS =* */=*)

### Move the real-leim directory outside of Emacs proper.
(cd ${tempparent}
 mkdir ${emacsname}-leim
 mkdir ${emacsname}-leim/${emacsname}
 mv ${emacsname}/real-leim ${emacsname}-leim/${emacsname}/leim)
d248 1
a248 1
 echo "  (It is ok if ln fails in some cases.)"
d250 2
d254 3
a256 20
 ln [a-zA-Z]*.in ../${tempdir}/src
 ln [a-zA-Z]*.opt ../${tempdir}/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]*.[hcs] [a-zA-Z]*.in [a-zA-Z]*.opt; do
   if test -f ../${tempdir}/src/$file; then
     # test -f appears to succeed for a symlink
     if test -L ../${tempdir}/src/$file; then
       rm ../${tempdir}/src/$file
       cp $file ../${tempdir}/src
       chmod a-w ../${tempdir}/src/$file
     fi
   else
     rm ../${tempdir}/src/$file
     cp $file ../${tempdir}/src
     chmod a-w ../${tempdir}/src/$file
   fi
 done
 ln README ChangeLog ChangeLog.*[0-9] ../${tempdir}/src
 ln makefile.nt vms-pp.trans ../${tempdir}/src
d258 1
a280 16
 ## 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
   if test -f ../${tempdir}/lib-src/$file; then
     # test -f appears to succeed for a symlink
     if test -L ../${tempdir}/lib-src/$file; then
       rm ../${tempdir}/lib-src/$file
       cp $file ../${tempdir}/lib-src
       chmod a-w ../${tempdir}/lib-src/$file
     fi
   else
     rm ../${tempdir}/lib-src/$file
     cp $file ../${tempdir}/lib-src
     chmod a-w ../${tempdir}/lib-src/$file
   fi
 done
d282 1
a282 1
 rm -f Makefile.c
d331 1
a331 18
 files=`ls -d * | grep -v 'RCS' | grep -v 'Old' | grep -v '^e$'`
 ln $files ../${tempdir}/etc
 ## 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 $files; do
   if test -f ../${tempdir}/etc/$file; then
     # test -f appears to succeed for a symlink
     if test -L ../${tempdir}/etc/$file; then
       rm ../${tempdir}/etc/$file
       cp $file ../${tempdir}/etc
       chmod a-w ../${tempdir}/etc/$file
     fi
   else
     rm ../${tempdir}/etc/$file
     cp $file ../${tempdir}/etc
     chmod a-w ../${tempdir}/etc/$file
   fi
 done
d425 1
a425 1
  echo "Creating tar files"
a428 3
  (cd ${tempparent}/${emacsname}-leim ; tar cvf - ${emacsname} ) \
    | ${default_gzip} \
    > ${emacsname}-leim.tar${gzip_extension}
d435 1
a435 1
  (cd ${tempparent}; mv ${emacsname} ${emacsname}-leim ..)
@


1.1.1.24
log
@import emacs-20.3
@
text
@d9 1
a9 1
# Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
d36 1
a36 1
## Don't restrict access to any files.
a39 1
check=yes
a58 4
    ## This option says don't check for bad file names, etc.
    "--no-check" )
      check=no
    ;;
a88 2
### (We don't accept EMACS=t as an answer, since that probably only means
### that the shell is running in an Emacs window.)
d95 1
a95 1
    if [ "x$EMACS" = "x" -o "x$EMACS" = "xt" ];
d146 29
a174 47
### Find where to run Emacs.
if [ $check = yes ];
then
  ### Check for .elc files with no corresponding .el file.
  ls -1 lisp/[a-z]*.el lisp/[a-z]*/[a-z]*.el \
	leim/[a-z]*.el leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
  ls -1 lisp/[a-z]*.elc lisp/[a-z]*/[a-z]*.elc \
	leim/[a-z]*.elc leim/[a-z]*/[a-z]*.elc > /tmp/elc
  bogosities="`comm -13 /tmp/el /tmp/elc`"
  if [ "${bogosities}" != "" ]; then
    echo "The following .elc files have no corresponding .el files:"
    echo "${bogosities}"
  fi
  rm -f /tmp/el /tmp/elc

  ### Check for .el files with no corresponding .elc file.
  (cd lisp; ls -1 [a-z]*.el [a-z]*/[a-z]*.el ; \
   cd ../leim; ls -1 [a-z]*.el [a-z]*/[a-z]*.el) > /tmp/el
  (cd lisp; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc; \
   cd ../leim; ls -1 [a-z]*.elc [a-z]*/[a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc
  losers="`comm -23 /tmp/el /tmp/elc`"
  bogosities=
  for file in $losers; do
    file1=`echo $file | sed -e "s|.*/||"`
    if ! grep -q "dontcompilefiles:.* $file1\($\| \)" lisp/Makefile; then
      case $file in
	site-init.el | site-load.el | site-start.el | default.el)
	  ;;
	term/*)
	  ;;
	*)
	  bogosities="$file $bogosities"
	  ;;
      esac
    fi
  done
  if [ x"${bogosities}" != x"" ]; then
    echo "The following .el files have no corresponding .elc files:"
    echo "${bogosities}"
  fi
  rm -f /tmp/el /tmp/elc

  ### Check for .el files that would overflow the 14-char limit if compiled.
  long=`find lisp leim -name '[a-zA-Z0-9]??????????*.el' -print`
  if [ "$long" != "" ]; then
    echo "The following .el file names are too long:"
    echo "$long"
d176 13
d219 1
a219 10
(cd lisp;
 files=`echo [!=]*.el | sed -e 's/ subdirs.el / /' -e 's/ default.el / /'`
 for dir in [!=]*; do
  if [ -d $dir ] && [ $dir != term ] && [ $dir != RCS ]; then
    echo $dir
    thisdir=`echo $dir/[!=]*.el | sed -e 's/ subdirs.el / /'`
    files="$files $thisdir"
  fi
 done
 head -1 $files | grep '^;' | sed -e 's/;;; //' | sort > MANIFEST)
d240 1
a240 1
ln GETTING.GNU.SOFTWARE INSTALL README BUGS move-if-change ${tempdir}
d255 1
a255 1
 mv -f tmp.README README)
d263 1
a263 1
	      etc etc/e lock info man msdos vms; do
d347 1
a347 1
       cp -p $file ../${tempdir}/src
d352 1
a352 1
     cp -p $file ../${tempdir}/src
d475 4
@


1.1.1.25
log
@import emacs-20.4
@
text
@a97 1
  unset EMACS_UNIBYTE
d214 1
a214 1
  (cd man; make -f Makefile.in srcdir=. info)
d218 1
a218 1
  (cd lisp; make updates EMACS="$EMACS")
d222 1
a222 1
  (cd leim; make leim-list.el EMACS="$EMACS")
d283 1
a283 1
	      nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
a328 3
   if [ -f $file/ChangeLog ]; then
     ln $file/ChangeLog ../${tempdir}/lisp/$file
   fi
a443 4
echo "Making links to \`nt/icons'"
(cd nt/icons
 ln [a-z]*.ico ../../${tempdir}/nt/icons)

a486 1
 rm -f fns*.el
@


1.1.1.26
log
@import emacs-21.0.103
@
text
@d9 1
a9 1
# Copyright (C) 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
d31 1
a31 1
#set -e
d34 1
a34 1
#set -v
a76 22

    "--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
    ;;

d159 1
a159 1
	leim/[a-z]*/[a-z]*.el | sed 's/\.el$/.elc/' > /tmp/el
d161 1
a161 1
	leim/[a-z]*/[a-z]*.elc > /tmp/elc
d171 1
a171 1
   cd ../leim; ls -1 [a-z]*/[a-z]*.el) > /tmp/el
d173 1
a173 1
   cd ../leim; ls -1 [a-z]*/[a-z]*.elc) | sed 's/\.elc$/.el/' > /tmp/elc
d178 1
a178 2
    if ! sed -n -e "/^DONTCOMPILE/,/[^\\]\$/p" lisp/Makefile.in |
	 grep -q "[ 	]$file1\($\| \)"; then
d214 1
d218 1
d221 3
a223 4
  if test -f leim/leim-list.el; then
    echo "Updating leim-list.el"
    (cd leim; make leim-list.el EMACS="$EMACS")
  fi
d226 1
d235 1
a235 2
  if [ -d $dir ] && [ $dir != term ] && [ $dir != CVS ] && [ $dir != RCS ]
  then
d262 2
a263 2
ln FTP INSTALL README BUGS move-if-change ${tempdir}
ln ChangeLog Makefile.in configure configure.in aclocal.m4 ${tempdir}
d269 1
a269 1
cp install-sh ${tempdir}
d281 2
a282 3
for subdir in lisp site-lisp \
	      leim real-leim real-leim/CXTERM-DIC real-leim/MISC-DIC \
	      real-leim/SKK-DIC real-leim/ja-dic real-leim/quail \
d285 1
a285 4
	      etc etc/e lock info man msdos vms mac mac/inc mac/inc/sys \
	      mac/src
do
  echo "  ${tempdir}/${subdir}"
d290 1
a290 1
cp noleim-Makefile.in ${tempdir}/leim/Makefile.in
a297 6
 for img in [a-zA-Z]*.xpm [a-zA-Z]*.xbm [a-zA-Z]*.pbm; do
   # If there are no images, the shell won't expand the pattern.
   if [ -f $img ]; then
     ln $img ../${tempdir}/lisp
   fi
 done
d300 1
a300 3
 ln ChangeLog Makefile.in makefile.nt ChangeLog.? ../${tempdir}/lisp
 ln makefile.w32-in ../${tempdir}/lisp
 test -f README && ln README ../${tempdir}/lisp
d312 1
a312 1
     . | .. | */Old | */CVS | */RCS | */=*)
d325 2
a326 7
   ln $file/[a-zA-Z0-9]*.el ../${tempdir}/lisp/$file
   ln $file/[a-zA-Z0-9]*.elc ../${tempdir}/lisp/$file
   for img in $file/[a-zA-Z]*.xpm $file/[a-zA-Z]*.xbm $file/[a-zA-Z]*.pbm; do
     if [ -f $img ]; then
       ln $img ../${tempdir}/lisp/$file
     fi
   done
a329 1

a331 5
     for f in $file/ChangeLog.[0-9]; do
       if [ -f $f ]; then
	 ln $f ../${tempdir}/lisp/$file
       fi
     done
d338 1
a338 1
 ln makefile.nt makefile.w32-in ../${tempdir}/real-leim
d343 2
a344 8
 ln MISC-DIC/*.* ../${tempdir}/real-leim/MISC-DIC
 ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/real-leim/ja-dic
 ln Makefile.in ../${tempdir}/real-leim/Makefile.in
 ln quail/[a-z]*.el quail/[a-z]*.elc ../${tempdir}/real-leim/quail
 rm -f ../${tempdir}/real-leim/quail/quick-b5.*
 rm -f ../${tempdir}/real-leim/quail/quick-cns.*
 rm -f ../${tempdir}/real-leim/quail/tsang-b5.*
 rm -f ../${tempdir}/real-leim/quail/tsang-cns.*
d382 1
a382 1
 ln makefile.nt makefile.w32-in vms-pp.trans ../${tempdir}/src
d385 1
a385 1
 rm -f config.h epaths.h Makefile Makefile.c
d405 1
a405 2
 ln grep-changelog rcs2log rcs-checkin makefile.nt ../${tempdir}/lib-src
 ln makefile.w32-in ../${tempdir}/lib-src
d428 1
a428 2
 ln emacs.rc config.nt [a-z]*.in [a-z]*.c ../${tempdir}/nt
 ln _emacs nmake.defs gmake.defs ../${tempdir}/nt
d430 1
a430 1
 ln TODO ChangeLog INSTALL README makefile.w32-in ../${tempdir}/nt)
a451 16
echo "Making links to \`mac'"
(cd mac
 ln ChangeLog INSTALL README *.xml *.MPW ../${tempdir}/mac)

echo "Making links to \`mac/inc'"
(cd mac/inc
 ln [a-z]*.h ../../${tempdir}/mac/inc)

echo "Making links to \`mac/inc/sys'"
(cd mac/inc/sys
 ln [a-z]*.h ../../../${tempdir}/mac/inc/sys)

echo "Making links to \`mac/src'"
(cd mac/src
 ln [a-z]*.c *.r ../../${tempdir}/mac/src)

d476 1
a476 1
 files=`ls -d * | grep -v CVS | grep -v RCS | grep -v 'Old' | grep -v '^e$'`
d501 1
a501 1
 ln `ls -d * | grep -v CVS | grep -v RCS` ../../${tempdir}/etc/e
d508 1
a508 2
 ln `find . -type f -print | grep -v CVS | grep -v RCS | grep -v cvsignore` ../${tempdir}/info
 #ln [a-zA-Z]* ../${tempdir}/info
d519 2
a520 3
 ln ChangeLog ../${tempdir}/man
 test -f split-man && ln split-man ../${tempdir}/man
 test -f texinfo.tex && cp texinfo.tex ../${tempdir}/man
d527 1
a527 1
 test -f README && ln README ../${tempdir}/vms
d590 1
a590 1
    > leim-${version}${new_extension}.tar${gzip_extension}
@


1.1.1.27
log
@import emacs-21.0.105
@
text
@a35 6
LANGUAGE=C
LC_ALL=C
LC_MESSAGES=
LANG=
export LANGUAGE LC_ALL LC_MESSAGES LANG

d591 1
a591 1
 cp texinfo.tex ../${tempdir}/man
@


1.1.1.28
log
@import emacs-21.0.106
@
text
@d487 1
a487 1
 ln _emacs nmake.defs gmake.defs subdirs.el ../${tempdir}/nt
@


1.1.1.29
log
@import emacs-21.2
@
text
@d153 1
a153 1
  if grep -s "@@set EMACSVER  *${shortversion}" ./man/emacs.texi > /dev/null; then
d234 1
a234 1
if [ "x`ls -t configure configure.in | sed q`" != "xconfigure" ]; then
d269 1
a269 3
 for file in $files
 do sed -n 's/^;;; //p; q' $file
 done | sort > MANIFEST)
d290 1
a290 1
ln AUTHORS FTP INSTALL README BUGS move-if-change ${tempdir}
a385 6
### Don't distribute an empty calc directory, present due to CVS
### misfeatures.
 (cd ./${tempdir}/lisp
  rm -rf calc
 )

@


1.1.1.30
log
@import emacs-21.3
@
text
@d9 1
a9 1
# Copyright (C) 1995, 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
d132 1
a132 1
    then
a239 9
### Make sure src/config-in.stamp is newer than configure.in.
if [ "x`ls -t src/stamp-h.in configure.in | sed q`" != "xsrc/stamp-h.in" ]; then
  echo "\`./configure.in' is newer than \`./src/stamp-h.in'" >&2
  echo "Running autoheader" >&2
  autoheader || { x=$?; echo Autoheader FAILED! >&2; exit $x; }
  rm -f src/stamp-h.in
  echo timestamp > src/stamp-h.in
fi

a243 2
  (cd lispref; make -f Makefile.in srcdir=. info)
  (cd lispintro; make -f Makefile.in SHELL=/bin/sh srcdir=. info VPATH=.)
d293 1
a293 1
ln ChangeLog Makefile.in configure configure.in ${tempdir}
d311 3
a313 3
for subdir in lisp site-lisp lispref lispintro \
	      leim leim/CXTERM-DIC leim/MISC-DIC \
	      leim/SKK-DIC leim/ja-dic leim/quail \
d316 2
a317 4
	      etc etc/e info man msdos vms mac mac/inc mac/inc/sys \
	      mac/src mac/Emacs.app mac/Emacs.app/Contents \
	      mac/Emacs.app/Contents/MacOS mac/Emacs.app/Contents/Resources \
	      mac/Emacs.app/Contents/Resources/English.lproj
d323 3
d355 1
a355 1
       ;;
d388 7
a394 1
echo "Making links to \`leim' and its subdirectories"
d397 2
a398 2
 ln makefile.nt makefile.w32-in ../${tempdir}/leim
 ln ChangeLog README ../${tempdir}/leim
d400 10
a409 10
 ln CXTERM-DIC/*.tit ../${tempdir}/leim/CXTERM-DIC
 ln SKK-DIC/README SKK-DIC/SKK-JISYO.L ../${tempdir}/leim/SKK-DIC
 ln MISC-DIC/*.* ../${tempdir}/leim/MISC-DIC
 ln ja-dic/*.el ja-dic/*.elc ../${tempdir}/leim/ja-dic
 ln Makefile.in ../${tempdir}/leim/Makefile.in
 ln quail/[a-z]*.el quail/[a-z]*.elc ../${tempdir}/leim/quail
 rm -f ../${tempdir}/leim/quail/quick-b5.*
 rm -f ../${tempdir}/leim/quail/quick-cns.*
 rm -f ../${tempdir}/leim/quail/tsang-b5.*
 rm -f ../${tempdir}/leim/quail/tsang-cns.*
d411 1
a411 1
 cd ../${tempdir}/leim
d414 6
d447 1
a447 1
 ln makefile.nt makefile.w32-in ../${tempdir}/src
d494 2
a495 2
 ln emacs.rc config.nt [a-z]*.c ../${tempdir}/nt
 ln nmake.defs gmake.defs subdirs.el ../${tempdir}/nt
d497 1
a497 1
 ln ChangeLog INSTALL README makefile.w32-in ../${tempdir}/nt)
a534 8
echo "Making links to \`mac/Emacs.app/Contents'"
(cd mac/Emacs.app/Contents
 ln Info.plist PkgInfo ../../../${tempdir}/mac/Emacs.app/Contents)

echo "Making links to \`mac/Emacs.app/Contents/Resources/English.lproj'"
(cd mac/Emacs.app/Contents/Resources/English.lproj
 ln InfoPlist.strings ../../../../../${tempdir}/mac/Emacs.app/Contents/Resources/English.lproj)

d551 3
a553 1
 ln README ChangeLog ../${tempdir}/lwlib)
a557 1
### Don't distribute gfdl.1, since no man page references it.
d578 1
a578 1
 rm -f fns*.el gfdl.1
a609 23
echo "Making links to \`lispref'"
(cd 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
 ln ChangeLog ../${tempdir}/lispref
 cd ../${tempdir}/lispref
 rm -f \#*\# =* *~ core elisp-index* *.Z *.z xmail
 rm -f elisp.?? *.log *.toc *.dvi *.oaux)

echo "Making links to \`lispintro'"
(cd lispintro
 ln *.texi *.aux *.cps *.fns *.kys *.vrs *.eps ../${tempdir}/lispintro
 test -f texinfo.tex && ln texinfo.tex ../${tempdir}/lispintro
 test -f README && ln README ../${tempdir}/lispintro
 test -f Makefile.in && ln Makefile.in ../${tempdir}/lispintro
 ln ChangeLog ../${tempdir}/lispintro
 cd ../${tempdir}/lispintro
 rm -f \#*\# =* *~ core *.Z *.z xmail
 rm -f emacs-lisp-intro.?? *.log *.toc *.dvi *.oaux)

d616 1
a616 1
### It would be nice if they could all be symlinks to top-level copy, but
d618 8
a625 4
echo "Making sure copying notices are all copies of \`COPYING'"
for subdir in . etc info leim lib-src lisp lwlib mac msdos nt src; do
  rm -f ${tempdir}/${subdir}/COPYING
  cp COPYING ${tempdir}/${subdir}
d669 1
a669 1
  echo "Creating tar file"
d673 3
d682 1
a682 1
  (cd ${tempparent}; mv ${emacsname} ..)
@


