]> git.lyx.org Git - lyx.git/commitdiff
Update update-po.sh script
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 4 Apr 2024 21:09:16 +0000 (17:09 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 4 Apr 2024 21:18:24 +0000 (17:18 -0400)
(cherry picked from commit b360b9ebf7c2b1bbb0fe674790ed78065c3780c0)
(cherry picked from commit eb57c93aab05d586e8b06ef8a7277850f1591e24)

development/tools/update-po.sh

index 596c3fbbe98c7de52914ef7866928165615a1b72..25be194359e343a76f802e1b0005489aa2db61f1 100755 (executable)
@@ -26,7 +26,7 @@ done
 
 if [ -z "$FARM" ]; then
   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;
 fi
 
@@ -93,7 +93,7 @@ fi
 
 if diff -w -q "$I18NFILE $FARM/$I18NFILE" >/dev/null 2>&1; then
   echo No string differences found.
-  git checkout ./*.po;
+  git checkout ./*.po ./*.gmo;
   exit 0;
 fi
 
@@ -138,11 +138,13 @@ if ! cd "$FARM"; then
 fi
 
 echo Updating the www-user tree...
-# note that we're assuming this one is svn.
-svn up;
+if ! git pull; then
+  echo "Problem updating www-user tree";
+  exit 1;
+fi
 
 echo Moving $I18NFILE...;
 mv "$LYXROOT/po/$I18NFILE" .;
 
 echo Committing...;
-$DEBUG svn commit -m "* $I18NFILE: update stats" $I18NFILE;
+$DEBUG git commit -m "* $I18NFILE: update stats" $I18NFILE;