Changeset 28133
- Timestamp:
- 2013-08-26T16:14:27+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/gen-model-colls.sh
r28105 r28133 400 400 401 401 echo "*******************************************" 402 echo "Usage: $0 [--svnupdate|--svndelete ] [--debug] [--message 'custom commit message'] [col1, col2, col3,...]";402 echo "Usage: $0 [--svnupdate|--svndelete|--svnaddnew] [--debug] [--message 'custom commit message'] [col1, col2, col3,...]"; 403 403 echo "If no collections are provided, all collections will be processed."; 404 404 echo "If neither svnupdate nor svndelete are provided, svnupdate is assumed."; … … 490 490 491 491 492 # Set up the Greenstone environment, this is mainly for building, 493 # but also for locating a Greenstone installation folder, in case this script doesn't live in one 494 # Test for GS3 home env then for GS2 home and if found, cd into the 495 # GS2/GS3 home location and run setup, 496 # else try to find setup.bash/gs3-setup.bash in the current location and 497 # run it. 498 # Else print a warning message saying that GSDLHOME is not set. 499 if [ "$GSDLHOME" != "" ]; then 500 echo "cd-ing into Greenstone home directory: $GSDLHOME" 501 cd "$GSDLHOME" 502 else 503 if [ -e setup.bash ]; then 504 source ./setup.bash 505 else 506 echo "No GSDLHOME set and no setup script found in current folder." 507 echo "Please source the setup script in a Greenstone installation. Exiting." 508 exit -1 509 fi 510 fi 511 512 492 513 # If no mode provided (svndelete|svnupdate) as cmd line arg, then don't modify 493 514 # the svn model-collect folder. Then this script stops after rebuilding the model-copy in collect … … 541 562 svn co http://svn.greenstone.org/other-projects/nightly-tasks/diffcol/trunk/model-collect 542 563 fi 564 543 565 544 566 # Not using rsync to copy folders while excluding files/subfolders, since rsync is not available on lsb … … 577 599 578 600 579 # Set up the Greenstone environment for building580 source setup.bash581 582 601 # parse arguments 583 602 # http://stackoverflow.com/questions/12711786/bash-convert-command-line-arguments-into-array
Note:
See TracChangeset
for help on using the changeset viewer.