Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

install.bat 1.46 KB
Newer Older
1
@echo off
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

:: BatchGotAdmin
:-------------------------------------
REM  --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params = %*:"=""
    echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    pushd "%CD%"
    CD /D "%~dp0"
:--------------------------------------

28 29
CD %~dp0

30 31
setx PATH "%CD%;%PATH%"
setx KATINI "%CD%\kat.ini"
32
setx CYGWIN "%CYGWIN% nodosfilewarning"
33

34 35 36 37
echo ---------------------------------------
echo Installed Finesse!
echo You can now call the `kat` command from 
echo any newly opened command prompt.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
echo Please run the findGnuplot.bat file too
echo to try and automatically find the 
echo gnuplot installation.
echo ---------------------------------------

call findGnuplot.bat

echo ---------------------------------------
echo Once gnuplot is setup you should test
echo the installation by running:
echo    kat test.kat
echo and:
echo    kat test_plot.kat
echo as described in section 3 in the 
echo INSTALL file.
53 54 55
echo ---------------------------------------

pause