Author: jasper
Date: 2007-12-28 15:31:48 +0000 (Fri, 28 Dec 2007)
New Revision: 26512

Modified:
   xfce4-panel/trunk/autogen.sh
Log:
Update autogen.sh to work in git repositories.

Modification as suggested by benny.


Modified: xfce4-panel/trunk/autogen.sh
===================================================================
--- xfce4-panel/trunk/autogen.sh        2007-12-27 16:07:14 UTC (rev 26511)
+++ xfce4-panel/trunk/autogen.sh        2007-12-28 15:31:48 UTC (rev 26512)
@@ -28,11 +28,14 @@
 }
 
 # substitute revision and linguas
-linguas=`sed -e '/^#/d' po/LINGUAS`
-revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'`
-sed -e "s/@LINGUAS@/${linguas}/g" \
-    -e "s/@REVISION@/${revision}/g" \
-    < "configure.in.in" > "configure.in"
+if test -d .git/svn; then
+ revision=`LC_ALL=C git-svn find-rev HEAD`
+else
+ revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n",
+$2}'`
+fi
+sed -e "s/@REVISION@/${revision}/g" \
+   < "configure.in.in" > "configure.in"
 
 xdt-autogen $@
 

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to