]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- don't compress AbiWord documents
authorsaq <saq@pld-linux.org>
Fri, 21 Nov 2003 15:45:34 +0000 (15:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- s/$FILENAME/"$FILENAME"/ to allow spaces in filenames

Changed files:
    rpm-compress-doc -> 1.8

rpm-compress-doc

index 766649dc304f647b406ab49eb537720ddb75fdae..3c5ff93ea3dbbeb3408f594983e21bfceb0fae3c 100644 (file)
@@ -10,7 +10,7 @@
 #set -x
 
 COMPRESS_CMD="gzip -9nf"
-EXCLUDE_SUFFIXES="htm html jpg jpeg png gif pdf css dia js HTM JPG PNG GIF PDF CSS JS"
+EXCLUDE_SUFFIXES="htm html jpg jpeg png gif pdf css dia js abw HTM JPG PNG GIF PDF CSS JS"
 EXCLUDE_MASKS=
 RECOMPRESS_BZIP2=yes
 
@@ -61,22 +61,22 @@ eval $FIND_CMD | while read FILENAME ; do
                        continue
                fi
        fi
-       case $FILENAME in
+       case "$FILENAME" in
        *.gz | *.Z)
-               gzip -d $FILENAME
-               FILENAME=$(echo $FILENAME | sed -e 's/\.gz$//; s/\.Z$//')
+               gzip -d "$FILENAME"
+               FILENAME=$(echo "$FILENAME" | sed -e 's/\.gz$//; s/\.Z$//')
                ;;
        *.bz2)
                if [ "$RECOMPRESS_BZIP2" = yes ] ; then
-                       bzip2 -d $FILENAME
-                       FILENAME=$(echo $FILENAME | sed -e 's/\.bz2$//')
+                       bzip2 -d "$FILENAME"
+                       FILENAME=$(echo "$FILENAME" | sed -e 's/\.bz2$//')
                else
                        continue
                fi
                ;;
        esac
 
-       $COMPRESS_CMD $FILENAME
+       $COMPRESS_CMD "$FILENAME"
 
        echo -n "$FILENAME "
 done
This page took 0.048104 seconds and 4 git commands to generate.