Oops. I am blind. That's right. That command does a chdir on
its own.
How does this sound?
---
diff --git a/Documentation/install-doc-quick.sh b/Documentation/install-doc-quick.sh
index 07d227f..bc170f0 100755
--- a/Documentation/install-doc-quick.sh
+++ b/Documentation/install-doc-quick.sh
@@ -24,10 +24,10 @@ git read-tree $head
git checkout-index -a -f --prefix="$mandir"/
if test -n "$GZ"; then
- cd "$mandir"
- for i in `git ls-tree -r --name-only $head`
+ git ls-tree -r --name-only $head |
+ while read path
do
- gzip < $i > $i.gz && rm $i
+ gzip "$mandir/$path"
done
fi
rm -f "$GIT_INDEX_FILE"
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html