From 8398b563c757a2f74ce540b9bd03943666808954 Mon Sep 17 00:00:00 2001 From: michelou Date: Fri, 28 Oct 2005 11:34:28 +0000 Subject: - added check for VERSION file. --- bin/.nsc_bat.tmpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/.nsc_bat.tmpl') diff --git a/bin/.nsc_bat.tmpl b/bin/.nsc_bat.tmpl index 6482103b97..5006ac5ec1 100644 --- a/bin/.nsc_bat.tmpl +++ b/bin/.nsc_bat.tmpl @@ -11,6 +11,7 @@ rem ########################################################################## if "%OS%"=="Windows_NT" @setlocal if "%SCALA_HOME%" == "" goto error1 +if not exist "%SCALA_HOME%\VERSION-@VERSION@" goto error2 set _ARGS= :loop @@ -33,7 +34,11 @@ rem ########################################################################## rem # errors :error1 -echo ERROR: environment variable SCALA_HOME is undefined. It should point to the directory containing the file VERSION. +echo ERROR: environment variable SCALA_HOME is undefined. It should point to the directory containing the file "VERSION-@VERSION@". +goto end + +:error2 +echo ERROR: environment variable SCALA_HOME points to the wrong directory "%SCALA_HOME%". It should point to the directory containing the file "VERSION-@VERSION@". goto end :end -- cgit v1.2.3