ci-source.sh 998 Bytes
Newer Older
1 2 3 4 5
# This script just creates compressed files of OpenFlipper sources

# Create Build directory and Build documentation
mkdir build-doc

Jan Möbius's avatar
Jan Möbius committed
6 7 8 9
pwd

ls

10
cd build-doc
Jan Möbius's avatar
Jan Möbius committed
11

Jan Möbius's avatar
Jan Möbius committed
12 13
pwd 

Jan Möbius's avatar
Jan Möbius committed
14 15
ls

16
cmake ..
Jan Möbius's avatar
Jan Möbius committed
17

Jan Möbius's avatar
Jan Möbius committed
18 19
pwd 

Jan Möbius's avatar
Jan Möbius committed
20 21
ls

22 23 24 25 26 27 28 29 30 31
make doc
cd ..

# Extract Version Information
VERSION=OpenFlipper-$(cat OpenFlipper/VERSION | grep VERSION | tr -d "VERSION=")

# Create Publishing directory
mkdir $VERSION

# Move all files into Publishing directory
Jan Möbius's avatar
Jan Möbius committed
32 33 34 35 36 37 38
cp -r OpenFlipper	$VERSION/
cp -r Plugin-*          $VERSION/
cp -r PluginCollection* $VERSION/
cp -r Type* 	        $VERSION/
cp -r CMakeLists.txt    $VERSION/
cp -r COPYING           $VERSION/
cp -r Readme.md         $VERSION/
39 40 41 42 43 44 45 46 47 48 49 50 51

cd $VERSION
find . -name "*git*" | xargs rm -rf
cd ..

mkdir $VERSION/Documentation
mv build-doc/Build/share/OpenFlipper/Doc/DeveloperHTML/ $VERSION/Documentation/DeveloperHTML
mv build-doc/Build/share/OpenFlipper/Doc/UserHTML/ $VERSION/Documentation/UserHTML

tar cjf $VERSION.tar.bz2 $VERSION
tar czf $VERSION.tar.gz $VERSION
zip -9 -q -r $VERSION.zip $VERSION