@matheusbsbs / matheus-bagliano / commits / afd46b3e89
Fork 0

Use describe to name the revision.

Junio C Hamano committed Jan 8, 2006 at 17:18 UTC afd46b3e89c320a5b0acda8c618f25ca9b8a63cc
1 file changed +5 -3
dodoc.sh
+5 -3
@@ -36,7 +36,9 @@ test "$DOCREPO" != "" &&
36 cd "$DOCREPO" || exit $?
37
38 git pull "$MASTERREPO" master &&
39 -test $(git-rev-parse --verify refs/heads/master) == "$ID" || exit $?
39 +test $(git-rev-parse --verify refs/heads/master) == "$ID" &&
40 +NID=$(git-describe --abbrev=4 "$ID") &&
41 +test '' != "$NID" || exit $?
42
43 # Set up subrepositories
44 test -d doc-htmlpages || (
@@ -76,7 +78,7 @@ fi || exit $?
78
79 cd ../doc-htmlpages &&
80 git add . &&
79 - if git commit -a -m "Autogenerated HTML docs for $ID"
81 + if git commit -a -m "Autogenerated HTML docs for $NID"
82 then
83 git-send-pack "$MASTERREPO" master:refs/heads/html || {
84 echo "* HTML failure"
@@ -92,7 +94,7 @@ make man1="$DOCREPO/doc-manpages/man1" man7="$DOCREPO/doc-manpages/man7" \
94
95 cd ../doc-manpages &&
96 git add . &&
95 - if git commit -a -m "Autogenerated man pages for $ID"
97 + if git commit -a -m "Autogenerated man pages for $NID"
98 then
99 git-send-pack "$MASTERREPO" master:refs/heads/man || {
100 echo "* man failure"