mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Make the script more flexible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38661 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
30864d048f
commit
9ec3c86d66
@ -1,8 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# A script to update the LyX i18n.inc statistics
|
# A script to update the LyX i18n.inc statistics
|
||||||
|
|
||||||
FARM="/cvs/lyx-www/farm/cookbook/LyX";
|
# The script expects an environment variable FARM that
|
||||||
|
# will provide it with the location of the LyX www tree.
|
||||||
|
|
||||||
|
if [ -z "$FARM" ]; then
|
||||||
|
echo "You must set the FARM variable to run this script, e.g.:";
|
||||||
|
echo "# FARM=/cvs/lyx-www/ bash updatestats.sh";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
FARM=${FARM%/};
|
||||||
|
FARM="$FARM/farm/cookbook/LyX";
|
||||||
# Sanity check
|
# Sanity check
|
||||||
if [ ! -f "$FARM/i18n.php" ]; then
|
if [ ! -f "$FARM/i18n.php" ]; then
|
||||||
echo "$FARM does not look like LyX's www tree!";
|
echo "$FARM does not look like LyX's www tree!";
|
||||||
@ -14,8 +23,8 @@ MYDIR=${0%updatestats.sh};
|
|||||||
if [ -n "$MYDIR" ]; then
|
if [ -n "$MYDIR" ]; then
|
||||||
cd $MYDIR;
|
cd $MYDIR;
|
||||||
fi
|
fi
|
||||||
LYXROOT=$(pwd);
|
|
||||||
cd ../../;
|
cd ../../;
|
||||||
|
LYXROOT=$(pwd);
|
||||||
|
|
||||||
# Are we in trunk or branch?
|
# Are we in trunk or branch?
|
||||||
TRUNK="TRUE";
|
TRUNK="TRUE";
|
||||||
|
Loading…
Reference in New Issue
Block a user