openmedialibrary_platform_d.../make.sh

40 lines
746 B
Bash
Raw Normal View History

2013-11-04 01:39:46 +00:00
cd `dirname $0`
#./src/pull.sh
#./build/build.sh
rm -rf dist
mkdir -p dist/bin dist/lib dist/include
for bin in \
2014-09-30 16:45:12 +00:00
python3 \
python3.4 \
2013-11-04 01:39:46 +00:00
; do
cp -a bin/$bin dist/bin/$bin
done
for bin in \
2014-09-30 16:45:12 +00:00
pip3 \
2013-11-04 01:39:46 +00:00
; do
2014-09-30 16:45:12 +00:00
sed "s/#\!.*python.*/#\!\/usr\/bin\/env python3/g" bin/$bin > dist/bin/$bin
2013-11-04 01:39:46 +00:00
done
2014-09-30 16:45:12 +00:00
cp -a lib/python3.4 dist/lib/python3.4
cp -a include/python3.4m dist/include/python3.4m
rm -r dist/lib/python3.4/test
2014-09-30 20:23:06 +00:00
find dist/ -name __pycache__ -type d | xargs rm -r
2013-11-04 01:39:46 +00:00
# libboost_system.dylib \
# libtorrent-rasterbar.7.dylib \
# libtorrent-rasterbar.dylib \
for lib in \
libfreetype.6.dylib \
libpng12.0.dylib \
libjpeg.62.dylib \
libz.1.dylib \
libz.1.2.8.dylib \
; do
cp -a lib/$lib dist/lib/$lib
done