"Fossies" - the Fresh Open Source Software Archive

Member "verapdf-greenfield-1.18.6/verapdf-install.bat" (17 Feb 2021, 1584 Bytes) of package /linux/misc/verapdf-installer.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 
    3 set ERROR_CODE=0
    4 
    5 :init
    6 @REM Decide how to startup depending on the version of windows
    7 
    8 @REM -- Win98ME
    9 if NOT "%OS%"=="Windows_NT" goto Win9xArg
   10 
   11 @REM set local scope for the variables with windows NT shell
   12 if "%OS%"=="Windows_NT" @setlocal
   13 
   14 @REM -- 4NT shell
   15 if "%eval[2+2]" == "4" goto 4NTArgs
   16 
   17 @REM -- Regular WinNT shell
   18 set CMD_LINE_ARGS=%*
   19 goto WinNTGetScriptDir
   20 
   21 @REM The 4NT Shell from jp software
   22 :4NTArgs
   23 set CMD_LINE_ARGS=%$
   24 goto WinNTGetScriptDir
   25 
   26 :Win9xArg
   27 @REM Slurp the command line arguments.  This loop allows for an unlimited number
   28 @REM of arguments (up to the command line limit, anyway).
   29 set CMD_LINE_ARGS=
   30 :Win9xApp
   31 if %1a==a goto Win9xGetScriptDir
   32 set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
   33 shift
   34 goto Win9xApp
   35 
   36 :Win9xGetScriptDir
   37 set SAVEDIR="%CD%"
   38 %0\
   39 cd %0\..\..
   40 set BASEDIR=%CD%
   41 cd "%SAVEDIR%"
   42 set SAVE_DIR=
   43 goto repoSetup
   44 
   45 :WinNTGetScriptDir
   46 set BASEDIR=%~dp0\
   47 
   48 java -jar "%BASEDIR%verapdf-izpack-installer-1.18.6.jar"
   49 if %ERRORLEVEL% NEQ 0 goto error
   50 goto end
   51 
   52 :error
   53 if "%OS%"=="Windows_NT" @endlocal
   54 set ERROR_CODE=%ERRORLEVEL%
   55 
   56 :end
   57 @REM set local scope for the variables with windows NT shell
   58 if "%OS%"=="Windows_NT" goto endNT
   59 
   60 @REM For old DOS remove the set variables from ENV - we assume they were not set
   61 @REM before we started - at least we don't leave any baggage around
   62 set CMD_LINE_ARGS=
   63 goto postExec
   64 
   65 :endNT
   66 
   67 @REM If error code is set to 1 then the endlocal was done already in :error.
   68 if %ERROR_CODE% EQU 0 @endlocal
   69 
   70 
   71 :postExec
   72 
   73 if "%FORCE_EXIT_ON_ERROR%" == "on" (
   74   if %ERROR_CODE% NEQ 0 exit %ERROR_CODE%
   75 )
   76 
   77 exit /B %ERROR_CODE%