Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tarball.sh - github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2de118906eef0e1eb0d55f3292909acf030209c8 (plain)
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