Changeset 13881


Ignore:
Timestamp:
2007-02-09T10:35:49+13:00 (17 years ago)
Author:
lh92
Message:

added interactions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl-documentation/manuals/generate-pdf.sh

    r13864 r13881  
    1616manuals="Paper User Develop  Install"
    1717
     18echo -e "choose a manual to work with: \n 'all' for all the manuals\n 'u' for the User's Guide\n 'd' for the Developer's Guide\n 'i' for the Installer's Guide\n 'p' for From Paper to Collection"
     19read cmd
     20
     21
     22if [ $cmd = 'u' ]; then
     23    manuals="User"
     24fi
     25if [ $cmd = 'd' ]; then
     26    manuals="Develop"
     27fi
     28if [ $cmd = 'i' ]; then
     29    manuals="Install"
     30fi
     31if [ $cmd = 'p' ]; then
     32    manuals="Paper"
     33fi
     34
     35
     36echo -e "choose a language to work with: \n all, en, fr, es, or ru"
     37read cmd
     38if [ $cmd != 'all' ]; then
     39    langs=$cmd
     40fi
     41
     42
    1843for l in $langs; do
    19     echo "Processing $l version"
     44
    2045    if [ ! -d $output_dir/$l ]; then         
    21       mkdir $output_dir/$l
     46          mkdir $output_dir/$l
    2247    fi
    23     mkdir $output_dir/$l/pdf
    24    
    25     for m in $manuals; do                   
     48    if [ ! -d $output_dir/$l/pdf ]; then
     49        mkdir $output_dir/$l/pdf
     50      fi
     51       
     52    for m in $manuals; do
     53        echo -e "\nprocessing the $m manual in $l"
    2654        $fop_dir/fop.sh -c $shared_dir/fop/conf/userconfig.xml -q -xsl $processing_dir/xml-to-pdf.xsl -xml $source_dir/$l/"$m"_"$l".xml -pdf $output_dir/$l/pdf/"$m"_"$l".pdf
     55        echo -e "done!\n"
    2756    done
    2857done
Note: See TracChangeset for help on using the changeset viewer.