Author: jasper Date: 2008-07-27 09:47:49 +0000 (Sun, 27 Jul 2008) New Revision: 27381
Modified: xfce4-appfinder/trunk/autogen.sh Log: Better support for git-svn to get revision. Modified: xfce4-appfinder/trunk/autogen.sh =================================================================== --- xfce4-appfinder/trunk/autogen.sh 2008-07-27 06:00:05 UTC (rev 27380) +++ xfce4-appfinder/trunk/autogen.sh 2008-07-27 09:47:49 UTC (rev 27381) @@ -30,12 +30,13 @@ # substitute revision and linguas linguas=`sed -e '/^#/d' po/LINGUAS` if test -d .git/svn; then - revision=`LC_ALL=C git-svn find-rev HEAD` -elif test -f .svn; then - revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", + revision=`git svn find-rev origin/trunk || + git svn find-rev trunk || + git svn find-rev HEAD || + git svn find-rev master` +else + revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n", $2}'` -else - revision="" fi sed -e "s/@LINGUAS@/${linguas}/g" \ -e "s/@REVISION@/${revision}/g" \ _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits