author | sheepluva |
Wed, 17 Dec 2014 19:03:33 +0100 | |
changeset 10689 | 692649e341fc |
parent 10667 | 5bd2fa61f25b |
child 11515 | 4dd77731453b |
permissions | -rwxr-xr-x |
6203 | 1 |
#!/bin/sh |
2 |
||
3 |
||
4 |
if [ -d QTfrontend ]; then |
|
5 |
cd QTfrontend |
|
6 |
else |
|
7 |
if [ -d ../QTfrontend ]; then |
|
8 |
cd ../QTfrontend |
|
9 |
else |
|
10 |
echo 'abort: Directory "QTfrontend" not found!' >&2 |
|
11 |
exit 1 |
|
12 |
fi |
|
13 |
fi |
|
14 |
||
15 |
if [ -z "$1" ]; then |
|
16 |
OUTPUT_DIRECTORY="../doc/QTfrontend" |
|
17 |
else |
|
18 |
OUTPUT_DIRECTORY="$1" |
|
19 |
fi |
|
20 |
||
21 |
echo "Creating documentation for Qt-Frontend in $OUTPUT_DIRECTORY ..." |
|
22 |
||
23 |
if [ $(which hg) ]; then |
|
24 |
||
25 |
branch=$(hg identify -b) |
|
26 |
rev=$(hg identify -rdefault -i) |
|
27 |
||
10667
5bd2fa61f25b
remove links from doxygen project number as doxygen escapes them now
sheepluva
parents:
6203
diff
changeset
|
28 |
#branchurl="<a href=http://code.google.com/p/hedgewars/source/list?name=${branch}>${branch}</a>" |
5bd2fa61f25b
remove links from doxygen project number as doxygen escapes them now
sheepluva
parents:
6203
diff
changeset
|
29 |
#revurl="<a href=http://code.google.com/p/hedgewars/source/detail?r=${rev}>${rev}</a>" |
6203 | 30 |
|
10667
5bd2fa61f25b
remove links from doxygen project number as doxygen escapes them now
sheepluva
parents:
6203
diff
changeset
|
31 |
branchurl="$branch" |
5bd2fa61f25b
remove links from doxygen project number as doxygen escapes them now
sheepluva
parents:
6203
diff
changeset
|
32 |
revurl="$rev" |
5bd2fa61f25b
remove links from doxygen project number as doxygen escapes them now
sheepluva
parents:
6203
diff
changeset
|
33 |
|
5bd2fa61f25b
remove links from doxygen project number as doxygen escapes them now
sheepluva
parents:
6203
diff
changeset
|
34 |
export PROJECT_NUMBER="${branchurl} branch, ${revurl}" |
6203 | 35 |
export OUTPUT_DIRECTORY |
36 |
||
37 |
fi |
|
38 |
||
39 |
doxygen |
|
40 |
exit $? |