forked from lintest/fb2edit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtarball.sh
More file actions
executable file
·30 lines (23 loc) · 800 Bytes
/
tarball.sh
File metadata and controls
executable file
·30 lines (23 loc) · 800 Bytes
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
#!/bin/sh
PROJECT=`cat CMakeLists.txt | grep "project(" | sed 's/.*(//' | sed 's/).*//g'`
VERSION=`cat CMakeLists.txt | grep "set(PACKAGE_VERSION" | sed 's/.* "//' | sed 's/\".*//g'`
echo Version: ${PROJECT} - ${VERSION};
rm -rf tarball
mkdir tarball
cd tarball
mkdir ${PROJECT}-${VERSION}
cd ${PROJECT}-${VERSION}
cp -f ../../AUTHORS .
cp -f ../../INSTALL .
cp -f ../../LICENSE .
cp -f ../../README .
cp -f ../../ChangeLog .
cp -f ../../CMakeLists.txt .
cp -f ../../${PROJECT}.pro .
cp -f ../../windows.sh .
cp -rf ../../3rdparty .
cp -rf ../../desktop .
cp -rf ../../source .
cd ..
tar -cvjf ${PROJECT}-${VERSION}.tar.bz2 ${PROJECT}-${VERSION}
cp ${PROJECT}-${VERSION}.tar.bz2 ${PROJECT}_${VERSION}.orig.tar.bz2