blob: fccd6fcbc8c39331ec9cea913aea8eaa63c1fb2c (
plain)
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
|
#!/bin/sh
#options parsing
BINDIR=
SRCDIR=
OUTDIR=
while [ -n "$1" ]; do
echo "$1" | grep '^--*=*' >/dev/null 2>&1 || break
OPTION=`echo $1 | sed 's,^--\([^=]*\)=\(.*\),\1,'`
ARG=`echo $1 | sed 's,^--\([^=]*\)=\(.*\),\2,'`
shift
case "$OPTION" in
qtsrc) SRCDIR="$ARG" ;;
qtbin) BINDIR="$ARG" ;;
outdir) OUTDIR="$ARG" ;;
*) ;;
esac
done
[ -z "$OUTDIR" ] && exit 1
mkdir -p "$OUTDIR/Developer/Documentation/Qt"
for dir in `find "$SRCDIR/doc" -name 'html*' -type d`; do
cp -R "$dir" "$OUTDIR/Developer/Documentation/Qt"
done
for dir in `find "$SRCDIR/doc" -name 'qch' -type d`; do
cp -R "$dir" "$OUTDIR/Developer/Documentation/Qt"
done
# The old code.
#cp -R "$SRCDIR/doc/html/" "$OUTDIR/Developer/Documentation/Qt"
#[ "$SRCDIR" != "$BINDIR" ] && cp -R "$BINDIR/doc/html/" "$OUTDIR/Developer/Documentation/Qt"
#ln -s . "$OUTDIR/Developer/Documentation/Qt/html"
exit 0
|