diff options
Diffstat (limited to 'util/scripts/mac-binary/doit.sh')
-rwxr-xr-x | util/scripts/mac-binary/doit.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/util/scripts/mac-binary/doit.sh b/util/scripts/mac-binary/doit.sh new file mode 100755 index 0000000..109f014 --- /dev/null +++ b/util/scripts/mac-binary/doit.sh @@ -0,0 +1,24 @@ +#!/bin/bash -e +[ -r $HOME/.bashrc ] && . $HOME/.bashrc +VERSION=$1 + +PACKAGE=qt-mac-commercial-src-${VERSION}.tar.gz +OSPACKAGE=qt-mac-opensource-src-${VERSION}.tar.gz +EVALPACKAGE=qt-mac-evalpatches-src-${VERSION}.tar.gz + +echo Downloading source packages... +curl -O http://tirion.troll.no/~qt/packages/$VERSION/$PACKAGE +curl -O http://tirion.troll.no/~qt/packages/$VERSION/$OSPACKAGE +curl -O http://tirion.troll.no/~qt/packages/$VERSION/$EVALPACKAGE + +echo Building commercial package... +./package/mkpackage -packages $HOME/tmp/mac-binary/install -qtpackage $PWD/$PACKAGE >log 2>&1 + +echo Building opensource package... +./package/mkpackage -packages $HOME/tmp/mac-binary/install -qtpackage $PWD/$OSPACKAGE >>log 2>&1 + +echo Building eval package... +./package/mkpackage -packages $HOME/tmp/mac-binary/install -qtpackage $PWD/$PACKAGE -licensetype eval >>log 2>&1 + +echo -n Uploading results... +scp -B outputs/*.dmg qt@tirion:public_html/packages/$VERSION |