source: trunk/apt/BuildAptExe.bat

Last change on this file was 1195, checked in by maphew, 4 years ago

apt: drop the misnamed files in favour of params, globally change
files[:1] for packages. Both install and remove work, nothing else tested.

File size: 1.0 KB
Line 
1@echo off
2REM @+leo-ver=5-thin
3REM @+node:maphew.20120709214653.1536: * @file BuildAptExe.bat
4REM @@first
5REM @@language batch
6@echo.
7@echo.  Build standalone apt.exe
8@echo.
9setlocal
10set _home=%~dp0
11
12:: determine location of pyinstaller
13set pyinstaller=..\..\pyinstaller
14if not exist "%pyinstaller%\pyinstaller.py" set pyinstaller=%1
15if not exist "%pyinstaller%\pyinstaller.py" goto :Usage
16
17:: get location of apt.py from commandline if not in current dir
18set aptpy=%_home%\apt.py
19if not exist "%aptpy%" set aptpy=%~dpnx2
20if not exist "%aptpy%" goto :Usage
21
22call :getRev
23set aptexe=%~dp2\%~n2-%rev%.exe
24
25:Main
26    pushd %pyinstaller% 
27    @echo on
28    python pyinstaller.py --onefile --out=%_home%\apt-%rev% %aptpy%
29    @echo off
30    popd
31    goto :eof
32
33REM @+others
34REM @+node:maphew.20110630221930.1198: ** getRev
35:getRev
36    for /f %%a in ('svnversion .') do set rev=r%%a
37    goto :eof
38   
39REM @+node:maphew.20110630221930.1199: ** Usage
40:Usage
41    @echo.
42    @echo%0 [path\to\pyinstaller\dir] [path\to\apt.py]
43    @echo.
44    goto :eof
45REM @-others
46REM @-leo
Note: See TracBrowser for help on using the repository browser.