forked from baskerville/plato
-
Notifications
You must be signed in to change notification settings - Fork 10
/
dist.sh
executable file
·36 lines (26 loc) · 872 Bytes
/
dist.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
[ -d dist ] && rm -Rf dist
if ! [ -x thirdparty/chrpath/chrpath ] ; then
cd thirdparty/chrpath
./configure && make
cd ../..
fi
mkdir -p dist/libs
cp libs/libz.so dist/libs/libz.so.1
cp libs/libbz2.so dist/libs/libbz2.so.1.0
cp libs/libpng16.so dist/libs/libpng16.so.16
cp libs/libjpeg.so dist/libs/libjpeg.so.9
cp libs/libopenjp2.so dist/libs/libopenjp2.so.7
cp libs/libjbig2dec.so dist/libs/libjbig2dec.so.0
cp libs/libfreetype.so dist/libs/libfreetype.so.6
cp libs/libharfbuzz.so dist/libs/libharfbuzz.so.0
cp libs/libdjvulibre.so dist/libs/libdjvulibre.so.21
cp libs/libmupdf.so dist/libs
cp libs/libmupdfwrapper.so dist/libs
cp -R scripts dist
cp -R icons dist
cp -R fonts dist
cp -R css dist
cp target/arm-unknown-linux-gnueabihf/release/plato dist/
./thirdparty/chrpath/chrpath -d dist/libs/*
arm-linux-gnueabihf-strip dist/plato dist/libs/*