Changeset 2524
- Timestamp:
- 12/21/09 14:44:04
- Files:
-
- trunk/build/quickstart/linux/bw (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/quickstart/linux/bw
r2484 r2524 25 25 26 26 usage() { 27 echo " $PRG [CONFIG-SOURCE] [CONFIG] [PROJECT] [ -offline } [ target ] " 27 echo " $PRG [CONFIG-SOURCE] [CONFIG] [PROJECT] [ -offline ] [ target ] " 28 echo " $PRG ACTION " 28 29 echo "" 29 30 echo " where:" … … 37 38 echo " -bwc configname" 38 39 echo "" 39 echo " -offline Build without attempting to retrieve library jars"40 echo " target Ant target to execute"40 echo " -offline Build without attempting to retrieve library jars" 41 echo " target Ant target to execute" 41 42 echo "" 42 43 echo " PROJECT optionally defines the package to build and is none or more of" … … 55 56 echo " The environment variable BEDEWORK_CONFIG contains the path to the current" 56 57 echo " configuration directory and can be used to build a path to the other files." 58 echo "" 59 echo " ACTION defines an action to take usually in the context of the quickstart." 60 echo " In a deployed system many of these actions are handled directly by a" 61 echo " deployed application. ACTION may be one of" 62 echo " -reindex - runs the indexer directly out of the quickstart bedework" 63 echo " dist directory to rebuild the lucene indexes" 57 64 echo "" 58 65 } … … 64 71 usage 65 72 exit 1 73 } 74 75 actionReindex() { 76 INDEXER=$QUICKSTART_HOME/bedework/dist/temp/shellscr/indexer 77 78 if [ ! -d "$INDEXER" ] ; then 79 errorUsage "The indexer directory $INDEXER does not exist. You probably need to do a rebuild." 80 fi 81 82 cd $INDEXER 83 chmod +x bwrun 84 ./bwrun reindex-nostart -user admin -indexlocprefix ../../../../../ 85 86 exit 0 66 87 } 67 88 … … 94 115 monitor= 95 116 117 action= 118 96 119 if [ "$1" = "" ] ; then 97 120 usage 98 121 exit 1 122 fi 123 124 # look for actions first 125 126 if [ "$1" = "-reindex" ] ; then 127 actionReindex 99 128 fi 100 129
