Fix "make GZ=1 quick-install-doc"
The basic idea is from Mark Levedahl. I do not use GZ=1 nor quick-install-doc myself (there obviously is a chicken-and-egg issue with quick-install-doc for me). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Aug 6, 2007 at 21:15 UTC
87027ae4494cd09c428e85b85337fed45a42e29c
1 file changed
+3
-5
Documentation/install-doc-quick.sh
+3
-5
@@ -24,10 +24,8 @@ git read-tree $head
24
git checkout-index -a -f --prefix="$mandir"/
25
26
if test -n "$GZ"; then
27
- cd "$mandir"
28
- for i in `git ls-tree -r --name-only $head`
29
- do
30
- gzip < $i > $i.gz && rm $i
31
- done
27
+ git ls-tree -r --name-only $head |
28
+ xargs printf "$mandir/%s\n" |
29
+ xargs gzip -f
30
fi
31
rm -f "$GIT_INDEX_FILE"