summaryrefslogtreecommitdiffstats
path: root/util/scripts/mac-binary/install/docs/create_package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/scripts/mac-binary/install/docs/create_package.sh')
-rwxr-xr-xutil/scripts/mac-binary/install/docs/create_package.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/util/scripts/mac-binary/install/docs/create_package.sh b/util/scripts/mac-binary/install/docs/create_package.sh
new file mode 100755
index 0000000..fccd6fc
--- /dev/null
+++ b/util/scripts/mac-binary/install/docs/create_package.sh
@@ -0,0 +1,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