2009-07-30 01:05:41 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2009-09-26 10:37:12 +02:00
|
|
|
if test -z "$1" || test -z "$2"; then
|
|
|
|
echo "You must provide a project and output dir."
|
|
|
|
exit;
|
2009-07-30 01:05:41 +02:00
|
|
|
fi
|
|
|
|
|
2009-09-26 10:57:26 +02:00
|
|
|
SRC_PWD=`pwd|sed "s|/docs/doxygen||"`
|
|
|
|
|
2009-09-26 10:37:12 +02:00
|
|
|
case "$1" in
|
|
|
|
"aegisub")
|
|
|
|
TRIM="${SRC_PWD}/src/"
|
|
|
|
;;
|
|
|
|
"reporter")
|
|
|
|
TRIM="${SRC_PWD}/reporter/"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
export OUTPUT_DIR="$2"
|
|
|
|
export SRC_TRIM="${TRIM}"
|
|
|
|
|
|
|
|
mkdir -vp "$2"
|
|
|
|
cp -v css.css "$2"
|
2009-07-30 01:05:41 +02:00
|
|
|
|
|
|
|
|
2009-09-26 10:37:12 +02:00
|
|
|
doxygen "doxyfile_$1"
|