Changeset 27661
- Timestamp:
- 2013-06-19T15:36:31+12:00 (11 years ago)
- Location:
- other-projects/nightly-tasks/snapshot/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/snapshot/trunk/lib.pl
r21886 r27661 95 95 96 96 #copy products to a temporary folder, giving them their new names 97 if ( !-d "$release_dir${sep}uploads" ) {97 if ( -d "$release_dir${sep}uploads" ) { 98 98 system( "rm -rf '$release_dir${sep}uploads'" ); 99 99 } -
other-projects/nightly-tasks/snapshot/trunk/task.pl
r27655 r27661 79 79 80 80 #change the filenames to have the date in them 81 $ENV{'munges'} = "s/ \D$ENV{'snapshot_id2'}/$ENV{'snapshot_id2'}-candidate-" . get_date() . "/g ";82 $ENV{'munges'} .= "s/ \D$ENV{'snapshot_id3'}/$ENV{'snapshot_id3'}-candidate-" . get_date() . "/g";81 $ENV{'munges'} = "s/$ENV{'snapshot_id2'}/$ENV{'snapshot_id2'}-candidate-" . get_date() . "/g "; 82 $ENV{'munges'} .= "s/$ENV{'snapshot_id3'}/$ENV{'snapshot_id3'}-candidate-" . get_date() . "/g"; 83 83 # the above generates a list of regex. Have a \D (non-digit) prefixed to the value to be substituted, else 84 84 # Greenstone-documented-examples-2013.06.18.tar.gz gets changed to Greenstone-documented-examples-2013.06-candidate-<daterepeat of 2013.06.18>.18.tar.gz
Note:
See TracChangeset
for help on using the changeset viewer.