-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.sh
executable file
·41 lines (35 loc) · 1.13 KB
/
build.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
37
38
39
40
#! /bin/sh
scons -c --no-opensource
scons -c
if [ -d build ] ; then
rm -rf build
fi
mkdir build
mkdir build/lightpng_mac_opensource
mkdir build/lightpng_mac_noopensource
mkdir build/lightpng_win_opensource
scons
mv lightpng build/lightpng_mac_opensource/
cp LICENSE.rst build/lightpng_mac_opensource/
cp README.rst build/lightpng_mac_opensource/
cp README_JP.rst build/lightpng_mac_opensource/
cd build
zip -9 -r lightpng_mac_opensource_`date +%Y%m%d`.zip lightpng_mac_opensource
cd ..
scons --no-opensource
mv lightpng build/lightpng_mac_noopensource/
cp LICENSE.rst build/lightpng_mac_noopensource/
cp README.rst build/lightpng_mac_noopensource/
cp README_JP.rst build/lightpng_mac_noopensource/
cp LICENSE_PVRTexLib.rst build/lightpng_mac_noopensource/
cd build
zip -9 -r lightpng_mac_noopensource_`date +%Y%m%d`.zip lightpng_mac_noopensource
cd ..
scons --mingw32
mv lightpng.exe build/lightpng_win_opensource/
cp LICENSE.rst build/lightpng_win_opensource/
cp README.rst build/lightpng_win_opensource/
cp README_JP.rst build/lightpng_win_opensource/
cd build
zip -9 -r lightpng_win_opensource_`date +%Y%m%d`.zip lightpng_win_opensource
cd ..