File: makesourcerelease.sh

package info (click to toggle)
ogre-1.9 1.9.0%2Bdfsg1-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 44,372 kB
  • sloc: cpp: 444,393; python: 8,255; ansic: 7,558; lex: 3,681; yacc: 1,589; pascal: 1,061; java: 126; makefile: 69; sh: 40
file content (30 lines) | stat: -rw-r--r-- 702 bytes parent folder | download | duplicates (5)
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