forked from artyom-beilis/cppcms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·37 lines (32 loc) · 754 Bytes
/
release.sh
File metadata and controls
executable file
·37 lines (32 loc) · 754 Bytes
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
31
32
33
34
35
36
#!/bin/bash
if [ "$1" == "" ] ; then
echo "Usage (trunk|branches/name)"
exit 1;
fi
rm -fr current-release
mkdir current-release
cd ..
git archive $1 | tar -x -C tools/current-release
cd tools
VERSION=`grep CPPCMS_PACKAGE_VERSION current-release/CMakeLists.txt | sed 's/.*"\(.*\)".*/\1/'`
DIRNAME=cppcms-$VERSION
mv current-release $DIRNAME
cd $DIRNAME
doxygen
cp /usr/share/doc/lmdb-doc/html/dynsections.js doc/doxygen/html
cd ..
tar -cjf $DIRNAME.tar.bz2 $DIRNAME
rm -fr $DIRNAME
pushd .
if true
then
tar -xjf $DIRNAME.tar.bz2
cd $DIRNAME
mkdir -p ../../../www/$VERSION
cp -a doc/doxygen/html/* ../../../www/$VERSION/
cd ../../../www
rm -f latest
ln -s $VERSION latest
fi
popd
mv $DIRNAME.tar.bz2 ../../releases/