Author: rgheck Date: Wed Jun 1 15:10:38 2011 New Revision: 38913 URL: http://www.lyx.org/trac/changeset/38913
Log: Check for git in update script. Modified: lyx-devel/trunk/development/tools/updatestats.sh Modified: lyx-devel/trunk/development/tools/updatestats.sh ============================================================================== --- lyx-devel/trunk/development/tools/updatestats.sh Wed Jun 1 15:09:17 2011 (r38912) +++ lyx-devel/trunk/development/tools/updatestats.sh Wed Jun 1 15:10:38 2011 (r38913) @@ -53,6 +53,10 @@ 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 @@ 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!
