diff options
| author | Jim Blandy | 1992-11-07 20:36:45 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-11-07 20:36:45 +0000 |
| commit | 1dce54a11accafe0d4bea77285081a849c8b0972 (patch) | |
| tree | bfc24f85f1c0b11cbb67333a5501e9b30f3395a8 /make-dist | |
| parent | 43bf8b0ee3751f26b50d3c644f7dc6bb29e11f75 (diff) | |
| download | emacs-1dce54a11accafe0d4bea77285081a849c8b0972.tar.gz emacs-1dce54a11accafe0d4bea77285081a849c8b0972.zip | |
* make-dist: Don't forget that the way to avoid filenames starting
with `=' is to use the pattern `[a-zA-Z0-9]*.h', not
`[a-zA-Z0-9].h'. Add a new section for dealing with files that we
couldn't make hard links to, since we have two already, and
perhaps more to come.
Diffstat (limited to 'make-dist')
| -rwxr-xr-x | make-dist | 31 |
1 files changed, 27 insertions, 4 deletions
| @@ -95,11 +95,14 @@ mkdir ${tempdir} | |||
| 95 | # README while the rest of the tar file is still unpacking. Whoopee. | 95 | # README while the rest of the tar file is still unpacking. Whoopee. |
| 96 | echo "Making links to top-level files." | 96 | echo "Making links to top-level files." |
| 97 | ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} | 97 | ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir} |
| 98 | ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir} | 98 | ln ChangeLog Makefile.in build-install.in configure config.sub ${tempdir} |
| 99 | ln make-dist ${tempdir} | ||
| 99 | # Copy these files; on the GNU machines, at least, they are symbolic | 100 | # Copy these files; on the GNU machines, at least, they are symbolic |
| 100 | # links to files on another file system, so we can't make a hard link | 101 | # links to files on another file system, so we can't make a hard link |
| 101 | # to it. Eech. | 102 | # to it. Eech. |
| 102 | cp config.sub ${tempdir} | 103 | if [ ! -f ${tempdir}/config.sub ]; then |
| 104 | cp config.sub ${tempdir} | ||
| 105 | fi | ||
| 103 | 106 | ||
| 104 | echo "Creating subdirectories." | 107 | echo "Creating subdirectories." |
| 105 | for subdir in lisp lisp/term local-lisp external-lisp \ | 108 | for subdir in lisp lisp/term local-lisp external-lisp \ |
| @@ -146,6 +149,11 @@ echo "Making links to \`src'." | |||
| 146 | ../${tempdir}/src | 149 | ../${tempdir}/src |
| 147 | ln .gdbinit .dbxinit ../${tempdir}/src | 150 | ln .gdbinit .dbxinit ../${tempdir}/src |
| 148 | ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src | 151 | ln *.com *.opt vms-pp.trans vmsbuild ../${tempdir}/src |
| 152 | # gmalloc.c is a symbolic link to another file system, so we can't | ||
| 153 | # link it into ${tempdir}. We copy it. Eech. | ||
| 154 | if [ ! -f ../${tempdir}/src/gmalloc.c ]; then | ||
| 155 | cp gmalloc.c ../${tempdir}/src | ||
| 156 | fi | ||
| 149 | cd ../${tempdir}/src | 157 | cd ../${tempdir}/src |
| 150 | rm -f config.h paths.h Makefile | 158 | rm -f config.h paths.h Makefile |
| 151 | if [ -z "${newer}" ]; then | 159 | if [ -z "${newer}" ]; then |
| @@ -154,11 +162,11 @@ echo "Making links to \`src'." | |||
| 154 | 162 | ||
| 155 | echo "Making links to \`src/m'." | 163 | echo "Making links to \`src/m'." |
| 156 | (cd src/m | 164 | (cd src/m |
| 157 | ln README [a-zA-Z].h ../../${tempdir}/src/m) | 165 | ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/m) |
| 158 | 166 | ||
| 159 | echo "Making links to \`src/s'." | 167 | echo "Making links to \`src/s'." |
| 160 | (cd src/s | 168 | (cd src/s |
| 161 | ln README [a-zA-Z].h ../../${tempdir}/src/s) | 169 | ln README [a-zA-Z0-9]*.h ../../${tempdir}/src/s) |
| 162 | 170 | ||
| 163 | echo "Making links to \`lib-src'." | 171 | echo "Making links to \`lib-src'." |
| 164 | (cd lib-src | 172 | (cd lib-src |
| @@ -215,6 +223,21 @@ echo "Making links to \`vms'." | |||
| 215 | cd ../${tempdir}/vms | 223 | cd ../${tempdir}/vms |
| 216 | rm -f *~) | 224 | rm -f *~) |
| 217 | 225 | ||
| 226 | ### On the GNU machines, these files are symbolic links to files on | ||
| 227 | ### another device, meaning that we can't make hard links to them in | ||
| 228 | ### the staging directory. I can't think of a better solution, so I | ||
| 229 | ### just have a special kludge here which knows exactly which files | ||
| 230 | ### this might happen to and copies them if they don't seem to have | ||
| 231 | ### been linked. | ||
| 232 | echo "Making sure we got all the files that may be cross-device" | ||
| 233 | echo "symbolic links." | ||
| 234 | for file in ./config.sub ./src/gmalloc.c ; do | ||
| 235 | if [ ! -f ${tempdir}/${file} ] ; then | ||
| 236 | echo " \`${file}' was missed; copying it." | ||
| 237 | cp ${file} ${tempdir}/${file} | ||
| 238 | fi | ||
| 239 | done | ||
| 240 | |||
| 218 | echo "Making sure copying notices are all symlinks to \`etc/COPYING'." | 241 | echo "Making sure copying notices are all symlinks to \`etc/COPYING'." |
| 219 | rm -f ${tempdir}/etc/COPYING | 242 | rm -f ${tempdir}/etc/COPYING |
| 220 | cp etc/COPYING ${tempdir}/etc/COPYING | 243 | cp etc/COPYING ${tempdir}/etc/COPYING |