From: Glenn Morris Date: Tue, 12 Oct 2010 07:27:07 +0000 (-0700) Subject: * make-dist: Use find for etc/image files. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~46 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5e38a567cf226f3444cf12528e2c982d4eab4ec;p=emacs.git * make-dist: Use find for etc/image files. --- diff --git a/make-dist b/make-dist index 1cd8454f040..8db45b225e1 100755 --- a/make-dist +++ b/make-dist @@ -507,38 +507,9 @@ for dir in etc/*/; do 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'"