Ignore:
Timestamp:
2013-05-30T20:53:34+12:00 (11 years ago)
Author:
ak19
Message:

Resetting gsdlhome (reset-gsdlhome command) should not just update the perl shebang for gliserver.pl but also checksum.pl and metadata-server.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/gsicontrol.bat

    r24904 r27521  
    207207
    208208:relocate
    209 :: The path to the included perl at the top of gliserver.pl needs to use the new gsdlhome
    210 :: On windows, the path in gliserver.pl uses backslashes
     209:: The path to the included perl at the top of gliserver.pl and other cgi-bin perl files needs to use the new gsdlhome
     210:: On windows, the path in gliserver.pl and the others uses backslashes
    211211for /F "delims=*" %%T in ('"echo !gshome!| !_sed! s@\\@\\\\@g"') do set safeoldhome=%%T
    212212for /F "delims=*" %%T in ('"echo !gsdlhome!| !_sed! s@\\@\\\\@g"') do set safenewhome=%%T
     
    215215  type "!cgibin!\gliserver.pl.bak" | !_sed! "s@!safeoldhome!@!safenewhome!@g" > "!cgibin!\gliserver.pl"
    216216  del "!cgibin!\gliserver.pl.bak"
     217
     218  copy "!cgibin!\metadata-server.pl" "!cgibin!\metadata-server.pl.bak"
     219  type "!cgibin!\metadata-server.pl.bak" | !_sed! "s@!safeoldhome!@!safenewhome!@g" > "!cgibin!\metadata-server.pl"
     220  del "!cgibin!\metadata-server.pl.bak"
     221
     222  copy "!cgibin!\checksum.pl" "!cgibin!\checksum.pl.bak"
     223  type "!cgibin!\checksum.pl.bak" | !_sed! "s@!safeoldhome!@!safenewhome!@g" > "!cgibin!\checksum.pl"
     224  del "!cgibin!\checksum.pl.bak"
    217225)
    218226set safenewhome=
Note: See TracChangeset for help on using the changeset viewer.