-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakedocs
executable file
·37 lines (36 loc) · 1.01 KB
/
makedocs
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/sh
##
## A small script generating class docs for AquaTerm if
## autodoc is installed
##
## 2002-02-04 [email protected]
##
## check build action {build, clean, install}
echo "Checking for build action..."
if [ "$ACTION" = "clean" ]; then
echo "Cleaning docs"
rm -rf "$SYMROOT/Docs"
exit 0
fi
## I like to keep stuff like autodoc in my $HOME/bin/ directory:
PATH=$HOME/bin:$PATH
echo "Checking for autodoc..."
AUTODOC=$(which autodoc);
if [ -x "$AUTODOC" ]; then
echo "$AUTODOC is OK"
else
if [ -e "$AUTODOC" ]; then
echo "$AUTODOC exists, but is not executable"
else
echo "Couldn't find autodoc on your system"
fi
exit 1
fi
echo "Creating docs..."
if [ ! -d "$SYMROOT/Docs" ]; then
mkdir "$SYMROOT/Docs"
fi
$AUTODOC -force -timestamp -copyright "AquaTerm" -destination "$SYMROOT/Docs" -format html -project "$SRCROOT"
## We could probably filter the output (the classnames) with sed and insert them as links in a html template for easy viewing
echo "Done"
exit 0