forked from amorilia/pyffi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakezip.sh
executable file
·37 lines (29 loc) · 1.54 KB
/
makezip.sh
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
#!/bin/sh
# clean working copy
git clean -x -d -f
# generate documentation
rm -rfv docs
if [ "$1" = "test" ]
then
mkdir docs
echo "PyFFI test release - documentation not included" > docs/index.html
else
pushd docs-sphinx
# XXX broken
#python3 -c 'from epydoc.cli import cli; cli()' -v --output=../docs --name='Python File Format Interface' --url='http://pyffi.sourceforge.net/' --navlink=' <a class="navbar" target="_top" href="http://pyffi.sourceforge.net/">Python File Format Interface</a> </th><th class="navbar" align="center"> <a class="navbar" target="_top" href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=199269" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a> ' --docformat="restructuredtext" --top=pyffi pyffi
# XXX stub for documentation
mkdir ../docs; touch ../docs/index.html
popd
fi
# create source and binary distributions
rm MANIFEST
python3 setup.py -q sdist --format=zip
python3 setup.py -q sdist --format=bztar
python3 setup.py --command-packages bdist_nsi bdist_nsi --bitmap=win-install/pyffi_install_164x314.bmp --headerbitmap=win-install/pyffi_install_150x57.bmp --msvc2008sp1 --nshextra=win-install/pyffi.nsh --target-versions=3.0,3.1,3.2 --maya --blender
version=`python3 setup.py -V`
wcrev=`git log -1 --pretty=format:%h`
pushd dist
mv PyFFI-$version.zip PyFFI-$version.$wcrev.zip
mv PyFFI-$version.tar.bz2 PyFFI-$version.$wcrev.tar.bz2
mv PyFFI-$version.win32.exe PyFFI-$version.$wcrev.win32.exe
popd