From d5e38a567cf226f3444cf12528e2c982d4eab4ec Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 12 Oct 2010 00:27:07 -0700 Subject: [PATCH] * make-dist: Use find for etc/image files. --- make-dist | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) 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'" -- 2.39.2