mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
svn --> git
This commit is contained in:
parent
59648b5d35
commit
23858d72a5
@ -12,9 +12,10 @@ DEBUG="";
|
|||||||
COMMIT="";
|
COMMIT="";
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
while getopts ":cdh" options $ARGS; do
|
while getopts ":cCdh" options $ARGS; do
|
||||||
case $options in
|
case $options in
|
||||||
c) COMMIT="TRUE";;
|
c) COMMIT="TRUE";;
|
||||||
|
C) COMMIT="TRUE";;
|
||||||
d) DEBUG="echo";;
|
d) DEBUG="echo";;
|
||||||
h) echo "update-po.sh [-c] [-d]";
|
h) echo "update-po.sh [-c] [-d]";
|
||||||
echo "-c: Commit any changes we find.";
|
echo "-c: Commit any changes we find.";
|
||||||
@ -83,7 +84,7 @@ fi
|
|||||||
|
|
||||||
# make sure things are clean
|
# make sure things are clean
|
||||||
rm -f i18n.inc;
|
rm -f i18n.inc;
|
||||||
svn revert "$FARM/$I18NFILE";
|
# git checkout "$FARM/$I18NFILE";
|
||||||
|
|
||||||
echo Running make i18n.inc...
|
echo Running make i18n.inc...
|
||||||
make i18n.inc >/dev/null 2>&1;
|
make i18n.inc >/dev/null 2>&1;
|
||||||
@ -91,7 +92,7 @@ if [ -n "$TRUNK" ]; then
|
|||||||
mv -f i18n.inc i18n_trunk.inc
|
mv -f i18n.inc i18n_trunk.inc
|
||||||
fi
|
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 ./*.gmo;
|
git checkout ./*.po ./*.gmo;
|
||||||
exit 0;
|
exit 0;
|
||||||
@ -100,7 +101,7 @@ fi
|
|||||||
# So there are differences.
|
# So there are differences.
|
||||||
if [ -z "$COMMIT" ]; then
|
if [ -z "$COMMIT" ]; then
|
||||||
echo "Differences found!";
|
echo "Differences found!";
|
||||||
diff -wu "$FARM/$I18NFILE $I18NFILE" | less;
|
diff -wu "$FARM/$I18NFILE" "$I18NFILE" | less;
|
||||||
git checkout ./*.po ./*.gmo;
|
git checkout ./*.po ./*.gmo;
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user