Meta/dodoc.sh: make it easier to relocate the build areas
Junio C Hamano committed
Apr 20, 2012 at 23:33 UTC
8dd9a93e056ffbbd24540459f87bf1c6e32ec4ac
1 file changed
+5
-4
dodoc.sh
+5
-4
index 69cc9026b4..487e306d9c 100755
--- a/dodoc.sh
+++ b/dodoc.sh
@@ -9,10 +9,11 @@
unset GIT_DIR
-MASTERREPO=/srv/project/git/git.git/
-DOCREFHIER=refs/docs
-MANREPO=/srv/project/git/git-manpages.git/
-HTMLREPO=/srv/project/git/git-htmldocs.git/
+: ${TOP-/srv/project/git}
+
+MASTERREPO=$TOP/git.git/
+MANREPO=$TOP/git-manpages.git/
+HTMLREPO=$TOP/git-htmldocs.git/
target_repo () {
TARGETVAR=$(echo "$1"REPO | tr 'a-z' 'A-Z') &&