mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
bd9d3cb0eb
commit
ba3d0ac837
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user