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

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