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
|
#!/bin/bash
tag=$1
if [[ "$tag" == "" ]]; then
echo No tag specified
exit -1
fi
foldername=ogre_src_$tag
# You can set OGRE_RELEASE_CLONE_SOURCE to a local repo if you want to speed things up
if [[ "$OGRE_RELEASE_CLONE_SOURCE" == "" ]]; then
OGRE_RELEASE_CLONE_SOURCE=http://bitbucket.org/sinbad/ogre
fi
hg clone -r $tag $OGRE_RELEASE_CLONE_SOURCE $foldername
# Build configure
pushd $foldername
# delete repo, we only want working copy
rm -rf .hg
# Gen docs
cd Docs
bash ./src/makedocs.sh
# remove unnecessary files
cd ../api/html
rm -f *.hhk *.hhc *.map *.md5 *.dot *.hhp *.plist *.xml ../*.tmp
popd
# tarball for Linux
rm -f $foldername.tar.bz2
tar -cvhjf $foldername.tar.bz2 $foldername
|