Commit 9d2247b1 authored by Bruno Coudoin's avatar Bruno Coudoin

Website generation. Fixed the creation of the screenshot page (by section).

parent 52cd1630
......@@ -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
......
......@@ -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
......@@ -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;
#-------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment