#!/bin/bash
# Script to create proactive docs, the ant task is soon to appear!

# shell values, in the ant script those are properties 
#<property name="docs.dir" value="${base}/docs"/>
base=..
docs_dir=$base/docs
html_dir=$docs_dir/html
pdf_dir=$docs_dir/pdf
xml_src_dir=$base/src/org/objectweb/proactive/doc-files

rm -rf $html_dir $pdf_dir  
mkdir -p $html_dir 
mkdir -p $pdf_dir 


echo "    COPYING IMAGE FILES <comment : number of files copied should be more restrained, no?>" 
cp -r $xml_src_dir $html_dir/

echo "    GENERATING html pages in $html_dir"
xmlto xhtml -o $html_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml 

echo "    GENERATING pdf in $pdf_dir"
xmlto pdf -o $pdf_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml   --searchpath $(pwd)/$base/src/org/objectweb/proactive/

#!/bin/bash
# Script to create proactive docs, the ant task is soon to appear!

# shell values, in the ant script those are properties 
#<property name="docs.dir" value="${base}/docs"/>
base=..
docs_dir=$base/docs
html_dir=$docs_dir/html
pdf_dir=$docs_dir/pdf
xml_src_dir=$base/src/org/objectweb/proactive/doc-files

rm -rf $html_dir $pdf_dir  
mkdir -p $html_dir 
mkdir -p $pdf_dir 


echo "    COPYING IMAGE FILES <comment : number of files copied should be more restrained, no?>" 
cp -r $xml_src_dir $html_dir/
cp $xml_src_dir/ProActive.css $html_dir/

echo "    GENERATING html pages in $html_dir"
xmlto xhtml -o $html_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml 

echo "    GENERATING pdf in $pdf_dir"
xmlto pdf -o $pdf_dir -m $xml_src_dir/PA_config.xsl $xml_src_dir/PA_index.xml   --searchpath $(pwd)/$base/src/org/objectweb/proactive/

Copy ProActive.css to the ProActive/docs/html folder
Copy ProActive.css to the ProActive/docs/html folder


git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@3082 28e8926c-6b08-0410-baaa-805c5e19b8d6
