Changeset 28133


Ignore:
Timestamp:
2013-08-26T16:14:27+12:00 (11 years ago)
Author:
ak19
Message:

Some updates to the GS2-only versio of the script before the changes for GS3 are incorporated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/gen-model-colls.sh

    r28105 r28133  
    400400
    401401    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,...]";
    403403    echo "If no collections are provided, all collections will be processed.";
    404404    echo "If neither svnupdate nor svndelete are provided, svnupdate is assumed.";
     
    490490
    491491
     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.
     499if [ "$GSDLHOME" != "" ]; then
     500    echo "cd-ing into Greenstone home directory: $GSDLHOME"
     501    cd "$GSDLHOME"
     502else
     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
     510fi
     511
     512
    492513# If no mode provided (svndelete|svnupdate) as cmd line arg, then don't modify
    493514# the svn model-collect folder. Then this script stops after rebuilding the model-copy in collect
     
    541562    svn co http://svn.greenstone.org/other-projects/nightly-tasks/diffcol/trunk/model-collect
    542563fi
     564
    543565
    544566# Not using rsync to copy folders while excluding files/subfolders, since rsync is not available on lsb
     
    577599
    578600
    579 # Set up the Greenstone environment for building
    580 source setup.bash
    581 
    582601# parse arguments
    583602# http://stackoverflow.com/questions/12711786/bash-convert-command-line-arguments-into-array
Note: See TracChangeset for help on using the changeset viewer.