From ba3d0ac837622b560e99ef662a873b5e32fbd86d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 1 Jun 2011 13:10:38 +0000 Subject: [PATCH] Check for git in update script. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38913 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/tools/updatestats.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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!