Revision: 8067
http://languagetool.svn.sourceforge.net/languagetool/?rev=8067&view=rev
Author: gulp21-1
Date: 2012-09-19 15:13:25 +0000 (Wed, 19 Sep 2012)
Log Message:
-----------
[checkurl] be aware of new paths
Modified Paths:
--------------
trunk/JLanguageTool/src/main/dev/tools/checkurl.bash
Modified: trunk/JLanguageTool/src/main/dev/tools/checkurl.bash
===================================================================
--- trunk/JLanguageTool/src/main/dev/tools/checkurl.bash 2012-09-19
11:36:49 UTC (rev 8066)
+++ trunk/JLanguageTool/src/main/dev/tools/checkurl.bash 2012-09-19
15:13:25 UTC (rev 8067)
@@ -8,8 +8,8 @@
fi
if [ $1 == "all" ]; then
- langs=`ls -d ../../rules/*/ -l | awk -F / '{print $(NF-1)}'`
- langs=$langs" "`ls -d ../../rules/*/*/ -l | awk -F / '{print
$(NF-2)"/"$(NF-1)}'` # country variants
+ langs=`ls -d ../../resources/org/languagetool/rules/*/ -l | awk -F / '{print
$(NF-1)}'`
+ langs=$langs" "`ls -d ../../resources/org/languagetool/rules/*/*/ -l | awk
-F / '{print $(NF-2)"/"$(NF-1)}'` # country variants
langs=`echo "$langs" | tr " " "\n" | sort |tr "\n" " "` # sort
else
langs=$1
@@ -19,7 +19,7 @@
do
i=0
- for url in `grep \<url\> ../../rules/$lang/grammar.xml | sed -r
"s/.*<url>(.*)<\/url>/\1/g"`
+ for url in `grep \<url\>
../../resources/org/languagetool/rules/$lang/grammar.xml | sed -r
"s/.*<url>(.*)<\/url>/\1/g"`
do
response=`curl -o /dev/null --silent --head --write-out '%{http_code}\n'
$url`
if [ ! $response == "200" ]; then
@@ -28,7 +28,7 @@
fi
done
- echo $i of `grep \<url\> ../../rules/$lang/grammar.xml | wc -l` \<url\>s in
$lang/grammar.xml are problematic
+ echo $i of `grep \<url\>
../../resources/org/languagetool/rules/$lang/grammar.xml | wc -l` \<url\>s in
$lang/grammar.xml are problematic
done
exit 0
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits