Changeset 14606 for documentation/trunk


Ignore:
Timestamp:
2007-10-05T11:20:52+13:00 (14 years ago)
Author:
oranfry
Message:

making the generate-pdf.sh script work non-interactively, same as r:14593:14594

File:
1 edited

Legend:

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

    r13881 r14606  
    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.