Enhance tx tool.

This commit is contained in:
Laurent Destailleur 2013-07-31 14:11:58 +02:00
parent 6351c64a62
commit 68e13b09e9

View File

@ -4,13 +4,16 @@
# #
# Laurent Destailleur - eldy@users.sourceforge.net # Laurent Destailleur - eldy@users.sourceforge.net
#------------------------------------------------------ #------------------------------------------------------
# Usage: txpush.sh [all|xx_XX] # Usage: txpush.sh (source|all|xx_XX) [-r dolibarr.file] [-f]
#------------------------------------------------------ #------------------------------------------------------
# Syntax # Syntax
if [ "x$1" = "x" ] if [ "x$1" = "x" ]
then then
echo "Usage: txpush.sh (source|all|xx_XX) [-r dolibarr.file]" echo "This push local files to transifex."
echo "Note: If you push a langauge file (not source), file will be skipped if transifex file is newer."
echo " Using -f will overwrite translation but not memory."
echo "Usage: txpush.sh (source|all|xx_XX) [-r dolibarr.file] [-f]"
exit exit
fi fi
@ -28,7 +31,7 @@ then
echo "tx push -s $2 $3" echo "tx push -s $2 $3"
tx push -s $2 $3 tx push -s $2 $3
else else
echo "tx push -t -l $1 $2 $3" echo "tx push -t -l $1 $2 $3 $4"
tx push -t -l $1 $2 $3 tx push -t -l $1 $2 $3 $4
fi fi
fi fi