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

# Create Build directory and Build documentation
mkdir build-doc

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

8
cmake ..
Jan Möbius's avatar
Jan Möbius committed
9

10
make doc
Jan Möbius's avatar
Jan Möbius committed
11

12 13 14 15 16 17 18 19 20
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
21 22 23 24 25 26 27
mv OpenFlipper	     $VERSION/
mv Plugin-*          $VERSION/
mv PluginCollection* $VERSION/
mv Type* 	     $VERSION/
mv CMakeLists.txt    $VERSION/
mv COPYING           $VERSION/
mv Readme.md         $VERSION/
28 29 30 31 32 33 34 35 36 37 38 39 40

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