grub2: bring back build of aros-side grub2 tools
[AROS.git] / scripts / nightly / pkg / hosted
blob2aa86763b514e4f1865a77cf8deb768a25d9f08e
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 cd $BUILD_BASE/AROS
22 execute ./configure --target=$BUILDTARGET $BUILDEXTRAOPTS --enable-ccache --enable-build-type=nightly $PORTSSOURCESOPT $AROSTOOLCHAININSTALLOPT $AROSTOOLCHAINOPT
23 make -j $MAKE_JOBS
24 make -j $MAKE_JOBS default-x11keymaptable
26 cd $BUILD_BASE/AROS/bin/$BUILDTARGETDIR
27 move AROS $PACKAGE
29 copy $SOURCE_AROS/LICENSE $PACKAGE
30 copy $SOURCE_AROS/ACKNOWLEDGEMENTS $PACKAGE
31 delete $PACKAGE/Include
32 delete $PACKAGE/lib
34 archive $ARCHIVE $PACKAGE
36 if [ "$TESTEXE" != "" ]; then
37 cd $PACKAGE
38 copy $SP/autotest/* S/
39 #Xvfb :1
40 DISPLAY=:1 timeout $TESTTIMEOUT $TESTEXE $TESTARGS
41 printfile "Test_Report.txt"
43 if [ ! -f PASSED ]; then
44 printe "Package $ARCHIVE failed runtime tests. REMOVING ARCHIVE!"
45 delete $ARCHIVE
46 exit 5
48 else
49 printi "Skipping runtime tests."
52 cd $ROOT
53 delete $BUILD_BASE/AROS
54 resetl