This repository was archived by the owner on Sep 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.bat
More file actions
52 lines (48 loc) · 1.26 KB
/
release.bat
File metadata and controls
52 lines (48 loc) · 1.26 KB
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
43
44
45
46
47
48
49
50
51
52
@echo off
set py26="C:\Python26\python.exe"
echo Getting version...
%py26% -c "from dammit import __version__; print __version__" > tmp_file
set /p package_version= < tmp_file
del tmp_file
%py26% setup.py --version > tmp_file
set /p setup_version= < tmp_file
del tmp_file
if not %setup_version% == %package_version% (
echo FATAL
echo Setup.py version %setup_version% != Package version %package_version%
exit /b 1
)
set version=%setup_version%
echo Version = %version%
echo Did you update CHANGES.md?
echo Did you commit your changes?
PAUSE
echo.
echo Building
echo ========
echo Removing current AHK executable...
del /Q bin\activatePID.exe >NUL
echo Building AHK...
"C:\Program Files (x86)\AutoHotkey\Compiler\Ahk2Exe.exe" /in bin\activatePID.ahk /out bin\activatePID.exe >NUL
echo Building egg...
%py26% setup.py bdist_egg >NUL
echo.
echo Rolling out
echo ===========
set dest=T:\selimb\dammit
echo Cleaning eggs in %dest%
del %dest%\*.egg
echo Copying egg to %dest%
copy dist\*.egg %dest%\ >NUL
echo Echoing version number
echo %version% > %dest%\version.txt
attrib +h +s %dest%\version.txt
echo.
echo Cleaning...
%py26% setup.py clean --all >NUL
del /Q dammit.egg-info >NUL
rmdir /Q dammit.egg-info >NUL
del /Q dist>NUL
rmdir /Q dist>NUL
echo.
echo Release complete.