From: Richard Heck Date: Wed, 1 Jun 2011 13:10:38 +0000 (+0000) Subject: Check for git in update script. X-Git-Tag: 2.1.0beta1~3137 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ba3d0ac837622b560e99ef662a873b5e32fbd86d;p=lyx.git Check for git in update script. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38913 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/tools/updatestats.sh b/development/tools/updatestats.sh index 4fdf28a02b..7451a22e10 100644 --- a/development/tools/updatestats.sh +++ b/development/tools/updatestats.sh @@ -53,6 +53,10 @@ if ! cd $FARM; then exit 1; fi +# Are we under svn or git? +GIT=""; +if [ -d .git/ ]; then GIT="TRUE"; fi + echo echo Updating the www-user tree... svn up @@ -61,6 +65,11 @@ echo Copying $I18NFILE...; cp $LYXROOT/po/$I18NFILE .; echo Committing...; -svn commit -m "* $I18NFILE: update stats" $I18NFILE; +if [ -z "$GIT" ]; then + svn commit -m "* $I18NFILE: update stats" $I18NFILE; +else + git commit -m "* $I18NFILE: update stats" $I18NFILE; + git svn dcommit; +fi echo DONE!