GIT repositories: autogen.sh
Jasper Huijsmans
jasper at xfce.org
Fri Dec 28 13:21:28 CET 2007
Hey Brian,
I've been playing with the git repositories you created and I must say
I'm really enjoying it. I've put off learning git until now, but it
seems very useful to me.
I'm not sure if all autogen.sh scripts are the same, but for the panel
it tries to substitute the svn revision and that fails.
So, would something like the following patch be useful (I hope the
patch stays intact)?
----
diff --git a/autogen.sh b/autogen.sh
index 5fb3634..fa3f072 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -29,7 +29,13 @@ EOF
# substitute revision and linguas
linguas=`sed -e '/^#/d' po/LINGUAS`
-revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
+if [ `svn info $0 > /dev/null 2>&1` ]; then
+ revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
+elif [ -d ".git" ]; then
+ revision=`LC_ALL=C awk '/branches-maxRev/ { printf "%05d\n", $3 }'
.git/svn/.metadata`
+else
+ revision="(unknown)"
+fi
sed -e "s/@LINGUAS@/${linguas}/g" \
-e "s/@REVISION@/${revision}/g" \
< "configure.in.in" > "configure.in"
----
--
Jasper
More information about the Xfce4-dev
mailing list