summaryrefslogtreecommitdiffstats
path: root/util/scripts/mac-binary/install/debuglibraries/Resources
diff options
context:
space:
mode:
Diffstat (limited to 'util/scripts/mac-binary/install/debuglibraries/Resources')
-rw-r--r--util/scripts/mac-binary/install/debuglibraries/Resources/Description.plist14
-rw-r--r--util/scripts/mac-binary/install/debuglibraries/Resources/Readme.rtf7
-rw-r--r--util/scripts/mac-binary/install/debuglibraries/Resources/debuglibraries.info17
-rwxr-xr-xutil/scripts/mac-binary/install/debuglibraries/Resources/postflight58
4 files changed, 96 insertions, 0 deletions
diff --git a/util/scripts/mac-binary/install/debuglibraries/Resources/Description.plist b/util/scripts/mac-binary/install/debuglibraries/Resources/Description.plist
new file mode 100644
index 0000000..d12abfd
--- /dev/null
+++ b/util/scripts/mac-binary/install/debuglibraries/Resources/Description.plist
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IFPkgDescriptionDeleteWarning</key>
+ <string></string>
+ <key>IFPkgDescriptionDescription</key>
+ <string>Qt $VERSION_MAJOR$.$VERSION_MINOR$.$VERSION_PATCH$ Debug Libraries</string>
+ <key>IFPkgDescriptionTitle</key>
+ <string>Qt Debug Libraries</string>
+ <key>IFPkgDescriptionVersion</key>
+ <string>$VERSION_MAJOR$.$VERSION_MINOR$</string>
+</dict>
+</plist>
diff --git a/util/scripts/mac-binary/install/debuglibraries/Resources/Readme.rtf b/util/scripts/mac-binary/install/debuglibraries/Resources/Readme.rtf
new file mode 100644
index 0000000..f5636ca
--- /dev/null
+++ b/util/scripts/mac-binary/install/debuglibraries/Resources/Readme.rtf
@@ -0,0 +1,7 @@
+{\rtf1\mac\ansicpg10000\cocoartf102
+{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\margl1440\margr1440\vieww9000\viewh9000\viewkind0
+\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
+
+\f0\fs24 \cf0 Thanks for reading me} \ No newline at end of file
diff --git a/util/scripts/mac-binary/install/debuglibraries/Resources/debuglibraries.info b/util/scripts/mac-binary/install/debuglibraries/Resources/debuglibraries.info
new file mode 100644
index 0000000..7acd621
--- /dev/null
+++ b/util/scripts/mac-binary/install/debuglibraries/Resources/debuglibraries.info
@@ -0,0 +1,17 @@
+Title Qt Libraries
+Version $VERSION_MAJOR$.$VERSION_MINOR$
+Description Qt $VERSION_MAJOR$.$VERSION_MINOR$.$VERSION_PATCH$ Debug Libraries
+DefaultLocation (null)
+DeleteWarning
+
+### Package Flags
+
+NeedsAuthorization YES
+Required NO
+Relocatable YES
+RequiresReboot NO
+UseUserMask YES
+OverwritePermissions NO
+InstallFat NO
+RootVolumeOnly NO
+
diff --git a/util/scripts/mac-binary/install/debuglibraries/Resources/postflight b/util/scripts/mac-binary/install/debuglibraries/Resources/postflight
new file mode 100755
index 0000000..be34b81
--- /dev/null
+++ b/util/scripts/mac-binary/install/debuglibraries/Resources/postflight
@@ -0,0 +1,58 @@
+#!/bin/sh
+#fix the doc path
+#PACK_LOCATION="$1"
+#INST_LOCATION="$3"
+#"$PACK_LOCATION/Contents/Resources/qtconf.pl" -version $VERSION_MAJOR$.$VERSION_MINOR$ -value "$INST_LOCATION/System/Library" Libraries
+
+t()
+{
+ o="$1"
+ i="$INSTALLER_TEMP/`basename $o`_t"
+ rm -f "$i"
+ mv "$o" "$i"
+ perl -e "open(SIN, \"<\" . \"$i\");
+ open(SOUT, \">\" . \"$o\");
+ local $/;
+ binmode SIN;
+ binmode SOUT;
+ \$ulen = length(\"$2\")+1;
+ \$plen = length(\"$3\")+1;
+ \$klen = length(\"$4\")+1;
+ while(\$C = <SIN>) {
+ \$C =~ s,(qt_lcnsuser=).{\$ulen},\\1$2\\0,;
+ \$C =~ s,(qt_lcnsprod=).{\$plen},\1$3\0,;
+ \$C =~ s,(qt_qevalkey=).{\$klen},\1$4\0,;
+ print SOUT \$C;
+ }
+ close SIN;
+ close SOUT"
+}
+
+for lib in QtCore QtGui QtNetwork QtXml QtOpenGL QtSql Qt3Support QtSvg QtScript; do
+ [ -d "${3}/Library/Frameworks/${lib}.framework" ] || continue
+ cd "${3}/Library/Frameworks/${lib}.framework/Versions/$VERSION_MAJOR$.0"
+ Products="bad product"
+ (Licensee="not-licensed"; LicenseKeyExt="bad-license"; . $HOME/.qt-license >/dev/null 2>&1
+ if [ "$LicenseKeyExt" != "bad-license" ]; then
+ productTest=`echo $LicenseKeyExt | cut -f 1 -d - | cut -b 1`
+ case $productTest in
+ F)
+ # Universal
+ Products="Universal"
+ ;;
+ B)
+ # Desktop
+ Products="Desktop"
+ ;;
+ L)
+ # Desktop Lite
+ Products="Desktop Light"
+ ;;
+ *)
+ Products="bad product"
+ esac
+ fi
+ t "${lib}_debug" "$Licensee" "$Products" "$LicenseKeyExt")
+done
+
+exit 0