]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-compress-doc
02d49760ff3c47119c3c8f47030a3eb4 pldnotify.awk
[packages/rpm.git] / rpm-compress-doc
index 0f75bb4054dbbd07b08bb3239ba8a1c6c419fb27..cd579eb541321cac10089b74d040929d0d939522 100644 (file)
@@ -10,7 +10,7 @@
 #set -x
 
 COMPRESS_CMD="gzip -9nf"
-EXCLUDE_SUFFIXES="htm html jpg jpeg png gif pdf"
+EXCLUDE_SUFFIXES="htm html jpg jpeg png gif pdf css js dia"
 EXCLUDE_MASKS=
 RECOMPRESS_BZIP2=yes
 
@@ -34,10 +34,10 @@ fi
 
 FIND_CMD="find . -type f "
 for SUF in $EXCLUDE_SUFFIXES ; do
-       FIND_CMD="$FIND_CMD -a -not -name *.$SUF"
+       FIND_CMD="$FIND_CMD -a -not -name '*.$SUF'"
 done
 
-$FIND_CMD | while read FILENAME ; do
+eval $FIND_CMD | while read FILENAME ; do
        if test -n "$EXCLUDE_MASKS" ; then
                if eval "case \$(basename \"$FILENAME\") in
                         $EXCLUDE_MASKS ) true ;;
This page took 0.023826 seconds and 4 git commands to generate.