PageRenderTime 14ms CodeModel.GetById 1ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/build/gen-release-doc.sh

http://bdremote-ng.googlecode.com/
Shell | 76 lines | 46 code | 22 blank | 8 comment | 11 complexity | 8abc32766125dfac93e5b2cbace2abc4 MD5 | raw file
 1#!/bin/bash
 2
 3# Versions.
 4VER="0.5"
 5REL="r127"
 6
 7# Where to find the files.
 8WIKIDOCROOT=http://bdremote-ng.googlecode.com/svn-history/$REL/wiki
 9
10# Wget stuff.
11WGET=`type -p wget`
12WGET_OPTIONS="-q"
13D=`pwd`
14
15# Utility used to convert google wiki files from SVN into html.
16# Slightly broken, needs patch in doc/tools.
17CONVERT="ruby -I $HOME/remote-svn/google-wiki-syntax $HOME/remote-svn/google-wiki-syntax/wiki_convertor.rb"
18
19# Delete/create directory.
20rm -fr bdremote-ng-$VER-doc
21mkdir -p bdremote-ng-$VER-doc
22
23GetDoc()
24{
25    echo "Getting document $1.wiki .. "
26    $WGET $WGET_OPTIONS $WIKIDOCROOT/$1.wiki -O $1
27
28    return 0
29}
30
31ConvertDoc()
32{
33    echo "Converting document $1 to html .. " && \
34    $CONVERT $1 .
35
36    return 0
37}
38
39# echo "Getting $WIKIDOCROOT/README.wiki .." 
40 
41DOCS="README Releases initscripts relproc"
42
43cd bdremote-ng-$VER-doc && \
44for DOC in `echo $DOCS`
45do
46    GetDoc $DOC
47done 
48
49echo "Downloading done .."
50
51for DOC in `echo $DOCS`
52do
53    ConvertDoc $DOC
54done 
55
56echo "Conversion done .."
57
58for DOC in `echo $DOCS`
59do
60    rm -f $DOC
61done 
62
63echo "Generating doxygen .. "
64
65cd ../../doc/ && \
66rm -fr html && \
67doxygen && \
68cd ../build/bdremote-ng-$VER-doc && \
69cp -r ../../doc/html doxygen && \
70echo "Generated doxygen .."
71
72cd .. && tar -cvjf bdremote-ng-$VER-doc.tar.bz2 bdremote-ng-$VER-doc
73
74exit 0
75
76