File: make_zope_docs

package info (click to toggle)
python-happydoc 2.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,392 kB
  • ctags: 3,479
  • sloc: python: 12,382; makefile: 99; sh: 37
file content (48 lines) | stat: -rwxr-xr-x 829 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

cd ..
echo "Working in `pwd`..."

#HAPPYDOC="~/Personal/Devel/HappyDoc/happydoc"

if [ "$HAPPYDOC" = "" ]
then
	HAPPYDOC="happydoc"
	VERBOSITY="-q"
else
	VERBOSITY="-vvvv"
fi

echo "HAPPYDOC=$HAPPYDOC"
echo

function make_docs () {
	input_dir="$1" 
	shift 1
	output_dir="$1"
	shift 1
	title="$*"

	echo "Cleaning up old documentation in $output_dir"
	rm -rf $output_dir
	echo "Done"

	echo
	echo "Writing new documentation for $input_dir"
	$HAPPYDOC \
	    $VERBOSITY \
	    -t "$title" \
	    -d "$output_dir" \
	    "$input_dir" 
	echo

    archive_name=${output_dir}.tar.gz
    echo "Archiving to $archive_name..."
    tar zcf $archive_name $output_dir
    echo "Done"
    echo
}


make_docs "Zope-2-CVS-src" "Zope-2-CVS-srcdocs" "Zope2 CVS with ZEO"
#make_docs "Zope-2.3.0-src" "Zope-2.3.0-srcdocs" "Zope 2.3.0"