Changeset 27655


Ignore:
Timestamp:
2013-06-18T17:51:19+12:00 (11 years ago)
Author:
ak19
Message:

Fix for an idiosyncracy dependent on this month's date (2013.06.) matching the regex substitution for the current gs3 version of 3.06.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/snapshot/trunk/task.pl

    r22411 r27655  
    7979   
    8080    #change the filenames to have the date in them
    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";
     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";
     83    # the above generates a list of regex. Have a \D (non-digit) prefixed to the value to be substituted, else
     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
    8385
    8486    #set the path to server.exe
Note: See TracChangeset for help on using the changeset viewer.