Changeset 27540
- Timestamp:
- 2013-06-04T18:23:39+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/task
r27536 r27540 7 7 export DATA_DIR=$TASK_HOME/diffcol-data 8 8 export UPLOAD_DIR=$TASK_HOME/diffcol-reports 9 export MONITOR_EMAIL= anupama@waikato.ac.nz9 export MONITOR_EMAIL=greenstone_team@cs.waikato.ac.nz 10 10 11 11 #check key environment vars are set … … 181 181 182 182 #import 183 #Ensure the OIDtype for importing is hash_on_full_filename 184 # "to make document identifiers more stable across 185 # upgrades of the software, although it means that 186 # duplicate documents contained in the collection are no 187 # longer detected automatically." 183 188 echo $collection' - Importing:' 184 189 echo "<import>" >> $xmlout 185 import.pl $collection -removeold190 import.pl -OIDtype hash_on_full_filename $collection -removeold 186 191 echo "</import>" >> $xmlout 187 192 echo "done" … … 221 226 fi 222 227 echo "done" 223 224 228 } 225 229 226 230 function upload() { 227 scp $DATA_DIR/*.xml $DATA_DIR/*.html $UPLOAD_DIR 231 # ensure the upload directory exists 232 # before trying to transfer the xml and html files across 233 if [ ! -d "$UPLOAD_DIR" ]; then 234 mkdir -p "$UPLOAD_DIR"; 235 fi 236 237 scp $DATA_DIR/*.xml $DATA_DIR/*.html $UPLOAD_DIR 228 238 } 229 239
Note:
See TracChangeset
for help on using the changeset viewer.