Changeset 25677 for main/trunk/greenstone2/perllib/colcfg.pm
- Timestamp:
- 2012-05-25T17:35:53+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/colcfg.pm
r24754 r25677 273 273 } 274 274 275 # Now check if there is a collect.cfg file in the usual place, i.e. it is gs2. 275 # Check if there is a collectionConfig.xml file. If there is one, it's gs3 276 $configfilename = &util::filename_cat ($ENV{'GSDLCOLLECTDIR'}, "etc", "collectionConfig.xml"); 277 if (-e $configfilename) { 278 return ($configfilename, "gs3"); 279 } 280 281 # If we get to here we check if there is a collect.cfg file in the usual place, i.e. it is gs2. 276 282 $configfilename = &util::filename_cat ($ENV{'GSDLCOLLECTDIR'}, "etc", "collect.cfg"); 277 283 if (-e $configfilename) { 278 284 return ($configfilename, "gs2"); 279 }280 281 # If we get to here we check if there is a collectionConfig.xml file,282 # i.e. it is gs3.283 $configfilename = &util::filename_cat ($ENV{'GSDLCOLLECTDIR'}, "etc", "collectionConfig.xml");284 if (-e $configfilename) {285 return ($configfilename, "gs3");286 285 } 287 286
Note:
See TracChangeset
for help on using the changeset viewer.