forked from PhotoFilmStrip/PFS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
42 lines (31 loc) · 720 Bytes
/
make.bat
1
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
if %1!==! goto usage
set PYTHON=C:\Python27\python.exe
git rev-parse --short HEAD > scm_rev.txt
set /p SCM_REV=<scm_rev.txt
del scm_rev.txt
if "%1"=="compile" goto compile
if "%1"=="clean" goto clean
if "%1"=="package" goto package
if "%1"=="versioninfo" goto versioninfo
goto end
:compile
%PYTHON% setup.py build
goto end
:clean
%PYTHON% setup.py clean
goto end
:versioninfo
%PYTHON% -c "from photofilmstrip import Constants;print Constants.APP_VERSION"
goto end
:package
%PYTHON% setup.py bdist_winport bdist_wininst
move dist\*.* release\
goto end
:usage
echo usage:
echo make clean
echo make compile
echo make versioninfo
echo make package
:end