Check for git in update script.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38913 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-06-01 13:10:38 +00:00
parent bd9d3cb0eb
commit ba3d0ac837

View File

@ -53,6 +53,10 @@ if ! cd $FARM; then
exit 1; exit 1;
fi fi
# Are we under svn or git?
GIT="";
if [ -d .git/ ]; then GIT="TRUE"; fi
echo echo
echo Updating the www-user tree... echo Updating the www-user tree...
svn up svn up
@ -61,6 +65,11 @@ echo Copying $I18NFILE...;
cp $LYXROOT/po/$I18NFILE .; cp $LYXROOT/po/$I18NFILE .;
echo Committing...; 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! echo DONE!