summaryrefslogtreecommitdiff
path: root/make-dist
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-10-12 00:31:58 -0700
committerGlenn Morris <rgm@gnu.org>2010-10-12 00:31:58 -0700
commit6f3ed07fed6c7434e77e8800ba834d2f4c23da08 (patch)
tree097c85fb053aae06ec2d03f87531519d7499c0dc /make-dist
parentd5e38a567cf226f3444cf12528e2c982d4eab4ec (diff)
downloademacs-6f3ed07fed6c7434e77e8800ba834d2f4c23da08.tar.gz
* make-dist: Use find for the whole etc/ directory.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist26
1 files changed, 5 insertions, 21 deletions
diff --git a/make-dist b/make-dist
index 8db45b225e1..6da5502a3d8 100755
--- a/make-dist
+++ b/make-dist
@@ -488,27 +488,11 @@ echo "Making links to \`lwlib'"
ln *.[ch] *.in ../${tempdir}/lwlib
ln README ChangeLog ../${tempdir}/lwlib)
-echo "Making links to \`etc'"
-(cd etc
- for f in *; do
- [ -f "$f" ] || continue
- case "$f" in
- DOC*) continue ;;
- esac
- ln $f ../${tempdir}/etc
- done)
-
-for dir in etc/*/; do
- case "$dir" in
- etc/images/) continue ;;
- esac
- echo "Making links to \`${dir}'"
- (cd ${dir}
- ln * ../../${tempdir}/${dir})
-done
-
-echo "Making links to \`etc/images' and its subdirectories"
-for f in `find etc/images -type f`; do
+echo "Making links to \`etc' and its subdirectories"
+for f in `find etc -type f`; do
+ case $f in
+ etc/DOC*) continue ;;
+ esac
ln $f $tempdir/$f
done