]> git.lyx.org Git - lyx.git/blobdiff - development/tools/updatestats.sh
Fixup commit ff42fe
[lyx.git] / development / tools / updatestats.sh
index 4fdf28a02b5443448ffd5fb31d71a2b882fde17b..7451a22e10a7ba69f93fc60abd77be85c966bb6f 100644 (file)
@@ -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!