Revision 4, 1.1 kB
(checked in by ixs, 13 years ago)
|
initial mediatomb checkin
|
- Property svn:executable set to
*
|
Line | |
---|
1 |
#!/bin/bash |
---|
2 |
|
---|
3 |
set -ex |
---|
4 |
|
---|
5 |
D=${PWD} |
---|
6 |
|
---|
7 |
rm -rf tmp/MEDIATOMB |
---|
8 |
mkdir tmp/MEDIATOMB |
---|
9 |
|
---|
10 |
cp -a ${D}/module/* ${D}/tmp/MEDIATOMB/ |
---|
11 |
cp -a ${D}/tmp/install/* ${D}/tmp/MEDIATOMB/system/ |
---|
12 |
mkdir -p ${D}/tmp/MEDIATOMB/system/var/mediatomb/ |
---|
13 |
|
---|
14 |
# clean out development remains not needed in the release |
---|
15 |
#find ${D}/tmp/MEDIATOMB/system -name '*.so' | xargs rm -f |
---|
16 |
rm -rf ${D}/tmp/MEDIATOMB/system/lib/pkgconfig/ |
---|
17 |
rm -rf ${D}/tmp/MEDIATOMB/system/include |
---|
18 |
rm -rf ${D}/tmp/MEDIATOMB/system/bin/*-config |
---|
19 |
rm -rf ${D}/tmp/MEDIATOMB/system/share/aclocal/ |
---|
20 |
|
---|
21 |
|
---|
22 |
# Binary file |
---|
23 |
pushd ${D}/tmp/ |
---|
24 |
VERSION=$(LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${D}/tmp/MEDIATOMB/system/lib" ${D}/tmp/MEDIATOMB/system/bin/xml2 \ |
---|
25 |
< ${D}/module/Configure/install.rdf | grep /rdf:RDF/md:Install/md:Version | cut -d "=" -f 2) |
---|
26 |
tar cfvz ${D}/N5200_MEDIATOMB-${VERSION}.mod --owner 0 --group 0 MEDIATOMB/ |
---|
27 |
popd |
---|
28 |
|
---|
29 |
# Source file |
---|
30 |
mkdir N5200_MEDIATOMB-${VERSION}-src |
---|
31 |
cp -a build.sh release.sh module sources N5200_MEDIATOMB-${VERSION}-src |
---|
32 |
tar cfvz ${D}/N5200_MEDIATOMB-${VERSION}-src.tar.gz --owner 0 --group 0 N5200_MEDIATOMB-${VERSION}-src |
---|
33 |
rm -rf N5200_MEDIATOMB-${VERSION}-src |
---|