diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-07-27 17:38:43 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-07-27 17:38:43 +0000 |
commit | e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d (patch) | |
tree | 576891800f829fe8439770d0d0bb3390492ebe03 /brp-compress | |
parent | c8af0d7a062c9d74109a845987b9ca82806b7d67 (diff) | |
download | rpm-setup-e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d.tar rpm-setup-e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d.tar.gz rpm-setup-e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d.tar.bz2 rpm-setup-e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d.tar.xz rpm-setup-e3e64bb4e7fb8b37af24dcc9912652e68b9c9a7d.zip |
sync brp-compress with upstream rpm.org:
Avoid some unnecessary command invocations in scripts.
(Ville Skyttä <ville.skytta@iki.fi> 2010-02-03)
Diffstat (limited to 'brp-compress')
-rwxr-xr-x | brp-compress | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/brp-compress b/brp-compress index 6912d66..25873ca 100755 --- a/brp-compress +++ b/brp-compress @@ -19,10 +19,9 @@ for d in ./usr/man/man* ./usr/man/*/man* ./usr/info \ ./usr/share/doc/*/man/man* ./usr/lib/*/man/man* do [ -d $d ] || continue - for f in `find $d -type f` + for f in `find $d -type f ! -name dir` do [ -f "$f" ] || continue - [ "`basename $f`" = "dir" ] && continue case "$f" in *.Z) gunzip $f; b=`echo $f | sed -e 's/\.Z$//'`;; |