[gcompris/gcomprixogoo] Minor updates for web site generation.



commit 7957b692d7c15563235ce7a253cc6353541e3d37
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Feb 28 13:13:44 2010 +0100

    Minor updates for web site generation.

 docs/README                |   16 ++++++++++++++++
 docs/create_boards_menu.sh |    1 +
 docs/gcompris2spip.pl      |    3 ++-
 3 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/docs/README b/docs/README
new file mode 100644
index 0000000..ee44b1e
--- /dev/null
+++ b/docs/README
@@ -0,0 +1,16 @@
+# To update the SPIP website:
+# On the SPIP admin console backup the site
+# Copy the site 'dump.xml' in this directory
+# Remove the pevious screenshots from it:
+./spip_screenshot_remove.pl dump.xml > dump2.xml
+# Create the board menus
+./create_boards_menu.sh
+# Create the screenshots articles all_article.spip
+./gcompris2spip.pl
+# Include all_article.spip in dump2.xml
+sed -s "s/</SPIP>//" dump2.xml
+cat all_article.spip >> dump2.xml
+echo -e "\n</SPIP>" >> dump2.xml
+# Check no screenshots are missing
+./checkScreenshots.sh
+# Updload dump2.xml to gcompris.net/ecrire/data and import it.
diff --git a/docs/create_boards_menu.sh b/docs/create_boards_menu.sh
index 5bdde73..f657089 100755
--- a/docs/create_boards_menu.sh
+++ b/docs/create_boards_menu.sh
@@ -3,6 +3,7 @@
 LC_ALL=C
 
 mkdir -p boards
+rm -f boards/*
 
 for m in ../boards/*.xml.in ../src/*/*.xml.in
 do
diff --git a/docs/gcompris2spip.pl b/docs/gcompris2spip.pl
index 72818af..25fd091 100755
--- a/docs/gcompris2spip.pl
+++ b/docs/gcompris2spip.pl
@@ -5,7 +5,7 @@ use Data::Dumper;
 #
 #  The translation status from .po files
 #
-#  Copyright (C) 2004-2005 Bruno Coudoin.
+#  Copyright (C) 2004-2010 Bruno Coudoin.
 #
 #  gcompris2spip is free software; you can redistribute it and/or
 #  modify it under the terms of the GNU General Public License
@@ -34,6 +34,7 @@ use Data::Dumper;
 # USAGE:
 # This tool requires no parameters. It must be run withing the gcompris/docs directory
 # It will extract xml menus from gcompris/boards and create a spip XML version for them
+# in the output file all_article.spip
 #------------------------------------------------------------------------------------------
 
 



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