[gcompris] docs, updated the web site screenshots



commit 622d118546c2a5e56c3381250b04c734414de3b6
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Nov 4 20:53:57 2012 +0100

    docs, updated the web site screenshots

 docs/README                    |    3 ++-
 docs/checkScreenshots.sh       |    7 ++++++-
 docs/gcompris2spip.pl          |    3 +++
 docs/spip_screenshot_remove.pl |    2 +-
 4 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/docs/README b/docs/README
index c66e2cb..0705324 100644
--- a/docs/README
+++ b/docs/README
@@ -12,5 +12,6 @@ sed -i "s:</SPIP>::" dump2.xml
 cat all_article.spip >> dump2.xml
 echo -e "\n</SPIP>" >> dump2.xml
 # Check no screenshots are missing
-./checkScreenshots.sh
+# (pass the directory above the screenshot dir on the website)
+./checkScreenshots.sh ../../../gcompris_spip/
 # Updload dump2.xml to gcompris.net/ecrire/data and import it.
diff --git a/docs/checkScreenshots.sh b/docs/checkScreenshots.sh
index e9196c6..9356e07 100755
--- a/docs/checkScreenshots.sh
+++ b/docs/checkScreenshots.sh
@@ -1,4 +1,9 @@
 #!/bin/sh
 # Once gcompris2spip is run, run this one to check no screenshots
 # are missing
-grep screenshots/ all_article.spip | grep -v _small | cut -d= -f5 | cut -d \" -f2 | cut -d "&" -f1 |sort -u | xargs ls
+files=$(grep screenshots/ all_article.spip | grep -v _small | cut -d= -f5 | cut -d \" -f2 | cut -d "&" -f1 |sort -u)
+
+for f in $files
+do
+ ls $1/$f
+done
diff --git a/docs/gcompris2spip.pl b/docs/gcompris2spip.pl
index fdf4e39..e86bc12 100755
--- a/docs/gcompris2spip.pl
+++ b/docs/gcompris2spip.pl
@@ -76,6 +76,7 @@ my %sections = (
 		"ka", 0,
 		"ko", 0,
 		"lt", 0,
+		"lv", 0,
 		"mk", 0,
 		"ml", 0,
 		"mr", 0,
@@ -149,6 +150,7 @@ my %rubriques = (
 		 "ka", 0,
 		 "ko", 0,
 		 "lt", 0,
+		 "lv", 0,
 		 "mk", 0,
 		 "ml", 0,
 		 "mr", 0,
@@ -223,6 +225,7 @@ my %rubriques_all = (
 		 "ka", 0,
 		 "ko", 0,
 		 "lt", 0,
+		 "lv", 0,
 		 "mk", 0,
 		 "ml", 0,
 		 "mr", 0,
diff --git a/docs/spip_screenshot_remove.pl b/docs/spip_screenshot_remove.pl
index 22738d1..b5ed3a3 100755
--- a/docs/spip_screenshot_remove.pl
+++ b/docs/spip_screenshot_remove.pl
@@ -88,7 +88,7 @@ while (<SPIP>){
     {
       # We are in an article, track the date fields
       # If all 3 dates are the same, then it's a generated article.
-      for my $field qw/date date_redac date_modif/
+      for my $field (qw/date date_redac date_modif/)
 	{
 	 if($line =~ /<$field>/)
 	 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]