2 # A script to update the LyX i18n.inc statistics
4 FARM="/cvs/lyx-www/farm/cookbook/LyX";
7 if [ ! -f "$FARM/i18n.php" ]; then
8 echo "$FARM does not look like LyX's www tree!";
12 # Get us to the root of the tree we are in.
13 MYDIR=${0%updatestats.sh};
14 if [ -n "$MYDIR" ]; then
20 # Are we in trunk or branch?
22 if ls status.* 2>/dev/null | grep -q status; then
28 echo "Cannot cd to po/ directory!";
33 echo Running make i18n.inc...
35 if [ -n "$TRUNK" ]; then
36 mv i18n.inc i18n_trunk.inc
37 I18NFILE=i18n_trunk.inc;
43 echo "Unable to cd to $FARM!";
48 echo Updating the www-user tree...
51 echo Copying $I18NFILE...;
52 cp $LYXROOT/po/$I18NFILE .;
55 svn commit -m "* $I18NFILE: update stats" $I18NFILE;