File: neverball.bat

package info (click to toggle)
neverball 1.5.4-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 94,644 kB
  • sloc: ansic: 22,125; makefile: 438; sh: 150; xml: 129; awk: 69
file content (24 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off

setlocal
    path %~dp0\..;%PATH%

    if (%NEVERBALL_BINARY%) == () (
        set NEVERBALL_BINARY=neverball.exe
    )
    if (%NEVERBALL_DATA%) == () (
        set NEVERBALL_DATA=%~dp0\..\data
    )
    if (%NEVERBALL_LOCALE%) == () (
        set NEVERBALL_LOCALE=%~dp0\..\locale
    )

    del /f "%~dp0\..\stdout.txt" 2>NUL
    del /f "%~dp0\..\stderr.txt" 2>NUL

    "%NEVERBALL_BINARY%" %*

    type "%~dp0\..\stdout.txt"      2>NUL
    type "%~dp0\..\stderr.txt" 1>&2 2>NUL
endlocal