diff options
Diffstat (limited to 'util/scripts/mac-binary/install/tools')
6 files changed, 0 insertions, 260 deletions
diff --git a/util/scripts/mac-binary/install/tools/Info.plist b/util/scripts/mac-binary/install/tools/Info.plist deleted file mode 100644 index f30ba03..0000000 --- a/util/scripts/mac-binary/install/tools/Info.plist +++ /dev/null @@ -1,40 +0,0 @@ -<?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>CFBundleGetInfoString</key> - <string>Trolltech Qt $VERSION_MAJOR$.$VERSION_MINOR$.$VERSION_PATCH$ Tools</string> - <key>CFBundleIdentifier</key> - <string>com.trolltech.qt$VERSION_MAJOR$.tools</string> - <key>CFBundleName</key> - <string>Qt $VERSION_MAJOR$.$VERSION_MINOR$.$VERSION_PATCH$ Tools</string> - <key>CFBundleShortVersionString</key> - <string>$VERSION_MAJOR$.$VERSION_MINOR$</string> - <key>IFMajorVersion</key> - <integer>$VERSION_MAJOR$</integer> - <key>IFMinorVersion</key> - <integer>$VERSION_MINOR$</integer> - <key>IFPkgFlagAllowBackRev</key> - <false/> - <key>IFPkgFlagAuthorizationAction</key> - <string>AdminAuthorization</string> - <key>IFPkgFlagDefaultLocation</key> - <string>/</string> - <key>IFPkgFlagFollowLinks</key> - <true/> - <key>IFPkgFlagInstallFat</key> - <true/> - <key>IFPkgFlagIsRequired</key> - <true/> - <key>IFPkgFlagRelocatable</key> - <false/> - <key>IFPkgFlagRestartAction</key> - <string>NoRestart</string> - <key>IFPkgFlagRootVolumeOnly</key> - <true/> - <key>IFPkgFlagUpdateInstalledLanguages</key> - <false/> - <key>IFPkgFormatVersion</key> - <real>0.10000000149011612</real> -</dict> -</plist> diff --git a/util/scripts/mac-binary/install/tools/Resources/Description.plist b/util/scripts/mac-binary/install/tools/Resources/Description.plist deleted file mode 100644 index 5a88747..0000000 --- a/util/scripts/mac-binary/install/tools/Resources/Description.plist +++ /dev/null @@ -1,14 +0,0 @@ -<?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$ Tools</string> - <key>IFPkgDescriptionTitle</key> - <string>Qt Tools</string> - <key>IFPkgDescriptionVersion</key> - <string>$VERSION_MAJOR$.$VERSION_MINOR$</string> -</dict> -</plist> diff --git a/util/scripts/mac-binary/install/tools/Resources/Readme.rtf b/util/scripts/mac-binary/install/tools/Resources/Readme.rtf deleted file mode 100644 index f5636ca..0000000 --- a/util/scripts/mac-binary/install/tools/Resources/Readme.rtf +++ /dev/null @@ -1,7 +0,0 @@ -{\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/tools/Resources/postflight b/util/scripts/mac-binary/install/tools/Resources/postflight deleted file mode 100755 index d9c4a57..0000000 --- a/util/scripts/mac-binary/install/tools/Resources/postflight +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python - -import os, sys, shutil, re - -def readLicenseFile(): - licenseKeyPath = os.path.join(os.environ['HOME'], '.qt-license'); - - licenseKeyRE = re.compile(r"^LicenseKeyExt=(.+)$") - license = open(licenseKeyPath, 'r') - licensekey = "Bad Key" - for line in license: - matchObj = licenseKeyRE.match(line) - if matchObj: - licensekey = matchObj.group(1) - return licensekey - -def getEditionDefine(): - licenseKey = readLicenseFile() - - MeteredMap = { '5': True, 'L': True } - - if len(licenseKey) == 0: - return false - - licenseParts = licenseKey.split('-') - return MeteredMap.get(licenseParts[3][0], False) - - -if __name__ == "__main__": - if getEditionDefine() == False: - usageReporterPath = os.path.join(os.path.sep, 'usr', 'bin', 'qtusagereporter') - reporterInDevToolsPath = os.path.join(os.path.sep, 'Developer', 'Tools', 'qtusagereporter') - if os.path.exists(usageReporterPath): - finalPath = os.path.realpath(usageReporterPath); - os.remove(finalPath) - if os.path.exists(reporterInDevToolsPath): - os.remove(reporterInDevToolsPath) - if os.path.exists(usageReporterPath): - os.remove(usageReporterPath) - sys.exit(0) diff --git a/util/scripts/mac-binary/install/tools/Resources/tools.info b/util/scripts/mac-binary/install/tools/Resources/tools.info deleted file mode 100644 index 54f8d04..0000000 --- a/util/scripts/mac-binary/install/tools/Resources/tools.info +++ /dev/null @@ -1,17 +0,0 @@ -Title Qt Tools -Version $VERSION_MAJOR$.$VERSION_MINOR$ -Description Qt $VERSION_MAJOR$.$VERSION_MINOR$.$VERSION_PATCH$ Tools -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/tools/create_package.sh b/util/scripts/mac-binary/install/tools/create_package.sh deleted file mode 100755 index 6ed1e15..0000000 --- a/util/scripts/mac-binary/install/tools/create_package.sh +++ /dev/null @@ -1,142 +0,0 @@ -#!/bin/sh - -#options parsing -BINDIR= -SRCDIR= -OUTDIR= -DO_DEBUG=yes -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 - debug) DO_DEBUG="$ARG" ;; - qtsrc) SRCDIR="$ARG" ;; - qtbin) BINDIR="$ARG" ;; - outdir) OUTDIR="$ARG" ;; - *) ;; - esac -done - -copyHeader() -{ - HEADER_FILE=$1 - HEADER_DIR=$2 - mkdir -p $HEADER_DIR - if [ `wc -l $HEADER_FILE | awk '{print $1;}'` = "1" ]; then - LINE=`head -1 $HEADER_FILE` - if echo "$LINE" | grep '^#include "../../' >/dev/null 2>&1; then - HEADER_FILE=`dirname $HEADER_FILE`/`echo $LINE | sed "s,^#include \"\([^\"]*\)\"\$,\1,"` - fi - fi - cp "$HEADER_FILE" "$HEADER_DIR" -} - -copyHeaderDir() -{ - BASEDIR=$1 - DESTDIR=$2 - mkdir -p "$DESTDIR" - for header in `find "$BASEDIR" -type f`; do - case $header in - *_pch.h|*_p.h|*headers.pri) - continue - ;; - *) - copyHeader "$header" "$DESTDIR" - ;; - esac - done -} - -[ -z "$OUTDIR" ] && exit 1 - -#copy tools -for a in qmake uic uic3 rcc moc Assistant Assistant_adp pixeltool Linguist Designer qt3to4 rccdump lrelease lupdate lconvert findtr qtusagereporter qdoc qcollectiongenerator qhelpconverter qhelpgenerator xmlpatterns qdbus qdbusviewer qdbusxml2cpp qdbuscpp2xml evalextender macdeployqt; do - EXE= - if [ -d "${BINDIR}/bin/${a}.app" ]; then - mkdir -p "$OUTDIR/Developer/Applications/Qt/" - cp -R "${BINDIR}/bin/${a}.app" "$OUTDIR/Developer/Applications/Qt" - EXE="$OUTDIR/Developer/Applications/Qt/${a}.app/Contents/MacOS/$a" #in the bundle - #place it into the tools dir - mkdir -p "$OUTDIR/Developer/Tools/Qt/" - ln -s "/Developer/Applications/Qt/${a}.app" "$OUTDIR/Developer/Tools/Qt/${a}.app" - elif [ -x "${BINDIR}/bin/${a}" -o -x "${BINDIR}/tools/qdoc3/${a}" ]; then - EXE="$OUTDIR/usr/bin/$a-${VERSION_MAJOR}.${VERSION_MINOR}" - mkdir -p `dirname $EXE` - cp "${BINDIR}/bin/$a" "$EXE" - ln -s "$a-${VERSION_MAJOR}.${VERSION_MINOR}" "$OUTDIR/usr/bin/$a" - #place it into the tools dir - mkdir -p "$OUTDIR/Developer/Tools/Qt/" - ln -s "/usr/bin/$a-${VERSION_MAJOR}.${VERSION_MINOR}" "$OUTDIR/Developer/Tools/Qt/$a" - fi - [ -z "$EXE" ] && continue - - #configs - if [ "$a" = "qmake" ]; then - mkdir -p "$OUTDIR/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}/mkspecs" - cp -PR $SRCDIR/mkspecs/* "$OUTDIR/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}/mkspecs" - sed "s,qt_no_framework,,g" "$BINDIR/mkspecs/qconfig.pri" >"$OUTDIR/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}/mkspecs/qconfig.pri" - cat >>"$OUTDIR/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}/mkspecs/qconfig.pri" <<EOF -CONFIG += no_mocdepend -EOF - (cd "$OUTDIR/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}/mkspecs"; rm -f default; ln -s macx-xcode default) - ../libraries/fix_config_paths.pl -data "/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}" "$EXE" "/tmp/tmp.exe" - cp "/tmp/tmp.exe" "$EXE" - rm -f "/tmp/tmp.exe" - else - ../libraries/fix_config_paths.pl "$EXE" "/tmp/tmp.exe" - cp "/tmp/tmp.exe" "$EXE" - rm -f /tmp/tmp.exe - fi - #perms - strip "$EXE" >/dev/null 2>&1 - chmod a+x "$EXE" -done - -# Do the tool frameworks (Gah, this is copy-past from the libraries create_package.sh). -FRAMEWORK_DIR="$OUTDIR/Library/Frameworks" -mkdir -p "$FRAMEWORK_DIR" -for lib in QtDesigner QtDesignerComponents QtTest QtAssistant QtHelp; do - if [ ! -d "$BINDIR/lib/${lib}.framework" ]; then - echo "No framework for $lib!" - continue - fi - - cp -R "$BINDIR/lib/${lib}.framework" "$FRAMEWORK_DIR/" >/dev/null 2>&1 - ../libraries/fix_prl_paths.pl "$FRAMEWORK_DIR/${lib}.framework/${lib}.prl" "$FRAMEWORK_DIR/${lib}.framework/${lib}.prl.fixed" - mv "$FRAMEWORK_DIR/${lib}.framework/${lib}.prl.fixed" "$FRAMEWORK_DIR/${lib}.framework/${lib}.prl" - ../libraries/fix_config_paths.pl "$FRAMEWORK_DIR/${lib}.framework/Versions/${VERSION_MAJOR}/$lib" "$FRAMEWORK_DIR/${lib}.framework/Versions/${VERSION_MAJOR}/${lib}.fixed" - mv "$FRAMEWORK_DIR/${lib}.framework/Versions/${VERSION_MAJOR}/${lib}.fixed" "$FRAMEWORK_DIR/${lib}.framework/Versions/${VERSION_MAJOR}/$lib" - - # Remove the debug libraries (they are part of another package) - find "$FRAMEWORK_DIR/${lib}.framework/" -name '*_debug*' -exec rm -f {} \; >/dev/null 2>&1 -done - -#copy q3porting.xml. qt3to4 looks for it in QLibraryInfo::DataPath and QLibraryInfo::PrefixPath -cp $BINDIR/tools/porting/src/q3porting.xml $OUTDIR/usr/local/Qt${VERSION_MAJOR}.${VERSION_MINOR}/q3porting.xml - -# Finally handle QtUiTools -if [ -e "${BINDIR}/lib/libQtUiTools.a" ]; then - mkdir -p "$OUTDIR/usr/lib" - cp "${BINDIR}/lib/libQtUiTools.a" "$OUTDIR/usr/lib/libQtUiTools.a" - # Copy its headers as well - copyHeaderDir "${BINDIR}/include/QtUiTools" "$OUTDIR/usr/include/QtUiTools" -fi - -if [ -e "${BINDIR}/lib/libQtCLucene.${VERSION_MAJOR}.dylib" ]; then - mkdir -p "$OUTDIR/usr/lib" - for lib in libQtCLucene.dylib libQtCLucene.${VERSION_MAJOR}.dylib libQtCLucene.${VERSION_MAJOR}.${VERSION_MINOR}.dylib libQtCLucene.${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}.dylib; do - cp -R "${BINDIR}/lib/$lib" "$OUTDIR/usr/lib/" - done -fi - -# finally phrase books for Linguist -PHRASEDEST="$OUTDIR/Developer/Applications/Qt/phrasebooks" -mkdir -p "$PHRASEDEST" -for phrasebook in `find $BINDIR/tools/linguist/phrasebooks/ -name '*.qph'`; do - cp "$phrasebook" "$PHRASEDEST" -done - - |