Revision: 6714 http://languagetool.svn.sourceforge.net/languagetool/?rev=6714&view=rev Author: gulp21-1 Date: 2012-04-11 08:23:19 +0000 (Wed, 11 Apr 2012) Log Message: ----------- [ltdiff] allow creating diff for one language
Modified Paths: -------------- trunk/JLanguageTool/src/dev/tools/ltdiff/ltdiff.bash Modified: trunk/JLanguageTool/src/dev/tools/ltdiff/ltdiff.bash =================================================================== --- trunk/JLanguageTool/src/dev/tools/ltdiff/ltdiff.bash 2012-04-11 08:21:46 UTC (rev 6713) +++ trunk/JLanguageTool/src/dev/tools/ltdiff/ltdiff.bash 2012-04-11 08:23:19 UTC (rev 6714) @@ -1,8 +1,8 @@ #!/bin/bash -if [ ! $# -eq 2 ]; then - echo Usage: ./ltdiff.bash old_branch new_branch +if [ ! $# -eq 2 ] && [ ! $# -eq 3 ]; then + echo Usage: ./ltdiff.bash old_branch new_branch [lang] echo e.g. ./ltdiff.bash V_1_6 V_1_7 - echo " ./ltdiff.bash V_1_7 trunk" + echo " ./ltdiff.bash V_1_7 trunk en" exit -1 fi @@ -38,8 +38,13 @@ mv $folder $folder~ mkdir $folder -for l in `ls -d ../../../rules/*/ -l | awk -F / '{print $(NF-1)}'` -# for l in de en +if [ $# -eq 2 ]; then + langs=`ls -d ../../../rules/*/ -l | awk -F / '{print $(NF-1)}'` +else + langs=$3 +fi + +for l in $langs do echo $(tput setaf 2)------------------ echo $l This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs