changeset 110947:da31de2465a5

* make-dist: Use find for etc/image files.
author Glenn Morris <rgm@gnu.org>
date Tue, 12 Oct 2010 00:27:07 -0700
parents 267fc9b74892
children a2f817d28d08
files make-dist
diffstat 1 files changed, 3 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/make-dist	Tue Oct 12 00:09:39 2010 -0700
+++ b/make-dist	Tue Oct 12 00:27:07 2010 -0700
@@ -507,38 +507,9 @@
      ln * ../../${tempdir}/${dir})
 done
 
-echo "Making links to \`etc/images'"
-(cd etc/images
- for f in *; do
-     [ -f "$f" ] || continue
-     ln $f ../../${tempdir}/etc/images
- done)
-
-for dir in etc/images/*/; do
-    echo "Making links to \`${dir}'"
-    (cd ${dir}
-     for f in *; do
-         [ -f "$f" ] || continue
-         ln $f ../../../${tempdir}/${dir}
-     done
-     )
-done
-
-for dir in etc/images/*/*/; do
-    case "$dir" in
-        etc/images/icons/hicolor/) continue ;;
-    esac
-    echo "Making links to \`${dir}'"
-    (cd ${dir}
-     ln `ls -d *` ../../../../${tempdir}/${dir})
-done
-
-for dir in etc/images/icons/hicolor/*/apps \
-    etc/images/icons/hicolor/*/mimetypes; do
-    echo "Making links to \`${dir}'"
-    (cd ${dir}
-     ln `ls -d *` ../../../../../../${tempdir}/${dir}
-     cd ../../../../../../${tempdir}/${dir})
+echo "Making links to \`etc/images' and its subdirectories"
+for f in `find etc/images -type f`; do
+  ln $f $tempdir/$f
 done
 
 echo "Making links to \`info'"