Ignore:
Timestamp:
10/03/07 09:38:31 (14 years ago)
Author:
oranfry
Message:

made the generate-pdf script work non-interactively. It can still be used interactively as before, but now you can specify manual and language options on the command line instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentation/branches/3.03/manuals/generate-pdf.sh

    r13881 r14594  
    1616manuals="Paper User Develop  Install"
    1717
    18 echo -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"
    19 read cmd
    20 
     18if [ "$1" != "" ]; then
     19    cmd=$1
     20else
     21    echo -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"
     22    read cmd
     23fi
    2124
    2225if [ $cmd = 'u' ]; then
     
    3437
    3538
    36 echo -e "choose a language to work with: \n all, en, fr, es, or ru"
    37 read cmd
    38 if [ $cmd != 'all' ]; then
    39     langs=$cmd
     39if [ "$2" != "" ]; then
     40        langs=$2
     41else
     42    echo -e "choose a language to work with: \n all, en, fr, es, or ru"
     43    read cmd
     44    if [ $cmd != 'all' ]; then
     45        langs=$cmd
     46    fi
    4047fi
    41 
    4248
    4349for l in $langs; do
Note: See TracChangeset for help on using the changeset viewer.