mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Update update-po.sh script
(cherry picked from commitb360b9ebf7
) (cherry picked from commiteb57c93aab
)
This commit is contained in:
parent
0cd169d6ba
commit
37641cb08b
@ -26,7 +26,7 @@ done
|
|||||||
|
|
||||||
if [ -z "$FARM" ]; then
|
if [ -z "$FARM" ]; then
|
||||||
echo "You must set the FARM variable to run this script, e.g.:";
|
echo "You must set the FARM variable to run this script, e.g.:";
|
||||||
echo "# FARM=/cvs/lyx-www/ bash check-po.sh";
|
echo "# FARM=/cvs/lyx-www/ bash update-po.sh";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ fi
|
|||||||
|
|
||||||
if diff -w -q "$I18NFILE $FARM/$I18NFILE" >/dev/null 2>&1; then
|
if diff -w -q "$I18NFILE $FARM/$I18NFILE" >/dev/null 2>&1; then
|
||||||
echo No string differences found.
|
echo No string differences found.
|
||||||
git checkout ./*.po;
|
git checkout ./*.po ./*.gmo;
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -138,11 +138,13 @@ if ! cd "$FARM"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo Updating the www-user tree...
|
echo Updating the www-user tree...
|
||||||
# note that we're assuming this one is svn.
|
if ! git pull; then
|
||||||
svn up;
|
echo "Problem updating www-user tree";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
echo Moving $I18NFILE...;
|
echo Moving $I18NFILE...;
|
||||||
mv "$LYXROOT/po/$I18NFILE" .;
|
mv "$LYXROOT/po/$I18NFILE" .;
|
||||||
|
|
||||||
echo Committing...;
|
echo Committing...;
|
||||||
$DEBUG svn commit -m "* $I18NFILE: update stats" $I18NFILE;
|
$DEBUG git commit -m "* $I18NFILE: update stats" $I18NFILE;
|
||||||
|
Loading…
Reference in New Issue
Block a user