ci-source.sh 813 Bytes
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4

# This script just creates compressed files of OpenMesh sources

# Create Build directory and Build documentation
Jan Möbius's avatar
Jan Möbius committed
5
mkdir build-doc
Jan Möbius's avatar
Jan Möbius committed
6

Jan Möbius's avatar
Jan Möbius committed
7
cd build-doc
Jan Möbius's avatar
Jan Möbius committed
8 9 10 11 12
cmake ..
make doc
cd ..

# Extract Version Information
Jan Möbius's avatar
Jan Möbius committed
13
VERSION=OpenMesh-$(cat VERSION | grep VERSION | tr -d "VERSION=")
Jan Möbius's avatar
Jan Möbius committed
14 15

# Create Publishing directory
Jan Möbius's avatar
Jan Möbius committed
16
mkdir $VERSION
Jan Möbius's avatar
Jan Möbius committed
17 18 19 20 21 22 23 24 25 26 27

# Move all files into Publishing directory
mv CHANGELOG.md   $VERSION/
mv cmake          $VERSION/
mv CMakeLists.txt $VERSION/
mv debian         $VERSION/
mv Doc            $VERSION/
mv LICENSE        $VERSION/
mv README.md      $VERSION/
mv src            $VERSION/
mv VERSION        $VERSION/ 
Jan Möbius's avatar
Jan Möbius committed
28
mv openmesh.pc.in $VERSION/
Jan Möbius's avatar
Jan Möbius committed
29

Jan Möbius's avatar
Jan Möbius committed
30
mv build-doc/Build/share/OpenMesh/Doc/html/  $VERSION/Documentation
Jan Möbius's avatar
Jan Möbius committed
31

Jan Möbius's avatar
Jan Möbius committed
32 33 34
tar cjf $VERSION.tar.bz2 $VERSION 
tar czf $VERSION.tar.gz $VERSION 
zip -9 -q -r $VERSION.zip $VERSION 
Jan Möbius's avatar
Jan Möbius committed
35