[gcompris/gcomprixogoo] Website generation. Fixed the creation of the screenshot page (by section).
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Website generation. Fixed the creation of the screenshot page (by section).
- Date: Mon, 1 Mar 2010 22:01:18 +0000 (UTC)
commit 9d2247b161ef3246baf87c90f09a1f65a2f6e7c7
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Mon Mar 1 23:00:32 2010 +0100
Website generation. Fixed the creation of the screenshot page (by section).
docs/README | 2 +-
docs/create_boards_menu.sh | 8 ++++----
docs/gcompris2spip.pl | 12 ++++++------
3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/docs/README b/docs/README
index ee44b1e..c66e2cb 100644
--- a/docs/README
+++ b/docs/README
@@ -8,7 +8,7 @@
# Create the screenshots articles all_article.spip
./gcompris2spip.pl
# Include all_article.spip in dump2.xml
-sed -s "s/</SPIP>//" dump2.xml
+sed -i "s:</SPIP>::" dump2.xml
cat all_article.spip >> dump2.xml
echo -e "\n</SPIP>" >> dump2.xml
# Check no screenshots are missing
diff --git a/docs/create_boards_menu.sh b/docs/create_boards_menu.sh
index f657089..c4988fb 100755
--- a/docs/create_boards_menu.sh
+++ b/docs/create_boards_menu.sh
@@ -7,10 +7,10 @@ rm -f boards/*
for m in ../boards/*.xml.in ../src/*/*.xml.in
do
- menu=`basename $m`
+ menu=`basename $m .in`
/usr/bin/intltool-merge -x -u -c ../po/.intltool-merge-cache ../po $m boards/$menu
done
-rm boards/pythontemplate.xml.in
-rm boards/pythontest.xml.in
-rm boards/tuxpaint.xml.in
+rm boards/pythontemplate.xml
+rm boards/pythontest.xml
+rm boards/tuxpaint.xml
diff --git a/docs/gcompris2spip.pl b/docs/gcompris2spip.pl
index 25fd091..eafe447 100755
--- a/docs/gcompris2spip.pl
+++ b/docs/gcompris2spip.pl
@@ -31,11 +31,11 @@ use Data::Dumper;
# Prerequisite: We need to run the tool create_boards_menu.sh first
# -----------------------------------------------------------------------------------------
-# 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
-#------------------------------------------------------------------------------------------
+# USAGE: This tool requires no parameters. It must be run withing the
+# gcompris/docs directory It will extract xml menus from the boards
+# directory and create a spip XML version for them in the output file
+# all_article.spip
+# ------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
@@ -321,7 +321,7 @@ my $article_id = $first_article;
# First, Get all the boards description files
opendir DIR, $boards_dir or die "cannot open dir $boards_dir: $!";
-my @files = grep { $_ =~ /\.xml.in$/} readdir DIR;
+my @files = grep { $_ =~ /\.xml$/} readdir DIR;
closedir DIR;
#-------------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]