source: gli/trunk/gsdlver.bat@ 19355

Last change on this file since 19355 was 15609, checked in by ak19, 16 years ago

Helper batch files that act as subroutines for the modified gli.bat (as gli.bat now works for both GS2 and GS3)

File size: 333 bytes
Line 
1@echo off
2
3:: This batch script returns the version of greenstone that is running
4set _VERSION=1
5
6:: first parameter is the value of gsdlpath
7if exist %1\gs3-setup.bat set _VERSION=3
8if exist %1\setup.bat set _VERSION=2
9
10:: otherwise
11if "%_VERSION%" == "1" echo Error: can't determine which Greenstone version is being run.
Note: See TracBrowser for help on using the repository browser.