revert between 56095 -> 55830 in arch
[AROS.git] / scripts / nightly / pkg / hosted
blob6566418661982afd06d2866e1b746cd48b0c0352
1 #!/bin/zsh
2 # Creates generic "hosted" binary packages.
4 source $SP/setup
5 # The log-name MUST match the name of the package script
6 setl hosted-$BUILDTARGET.log
8 ARCHIVE_BASE=$ARCHIVE_BASE/Binaries
10 printi "Creating hosted binary packages..."
12 printi "Creating AROS/"$BUILDTARGET" system package..."
13 PACKAGE=$BASENAME-$BUILDTARGET-system
14 ARCHIVE=$ARCHIVE_BASE/$PACKAGE.tar.bz2
16 if [ -z ${BUILDTARGETDIR+x} ]; then BUILDTARGETDIR=$BUILDTARGET; fi
18 delete $BUILD_BASE/AROS
19 copy $SOURCE_AROS $BUILD_BASE/AROS
21 CONFIGURE_OPTIONS="--target=$BUILDTARGET"
22 if [[ "$VARIANT" != "" ]]; then
23 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS --enable-target-variant=$VARIANT"
25 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $BUILDEXTRAOPTS $CONFIGUREEXTRA --enable-ccache"
26 if [[ ( "$AROSTOOLCHAININSTALLOPT" != "" ) && -e $TOOLCHAIN_BASE/$BUILDCPU-aros-gcc ]]; then
27 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $AROSTOOLCHAININSTALLOPT $AROSTOOLCHAINOPT"
29 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS --enable-build-type=nightly $PORTSSOURCESOPT"
31 cd $BUILD_BASE/AROS
32 execute ./configure ${=CONFIGURE_OPTIONS}
33 make -j $MAKE_JOBS
34 make -j $MAKE_JOBS default-x11keymaptable
36 cd $BUILD_BASE/AROS/bin/$BUILDTARGETDIR
37 move AROS $PACKAGE
39 copy $SOURCE_AROS/LICENSE $PACKAGE
40 copy $SOURCE_AROS/ACKNOWLEDGEMENTS $PACKAGE
41 delete $PACKAGE/Include
42 delete $PACKAGE/lib
44 archive $ARCHIVE $PACKAGE
46 if [ "$TESTEXE" != "" ]; then
47 cd $PACKAGE
48 copy $SP/autotest/* S/
49 #Xvfb :1
50 DISPLAY=:1 execute timeout $TESTTIMEOUT $TESTEXE $TESTARGS
51 printfile "Test_Report.txt"
53 if [ ! -f PASSED ]; then
54 printe "Package $ARCHIVE failed runtime tests. REMOVING ARCHIVE!"
55 delete $ARCHIVE
56 exit 5
58 else
59 printi "Skipping runtime tests."
62 cd $ROOT
63 delete $BUILD_BASE/AROS
64 resetl