Fixed typos.
[tangerine.git] / scripts / nightly / pkg / bootiso
blobfdfbb60fca6e5183ed9b2a0714f057759ac2834e
1 #!/bin/zsh
2 # Generic bootiso binary package generator.
4 BOOTLOADER=$1
6 source $SP/setup
8 # The log-name MUST match the name of the package script
9 setl bootiso-$BOOTLOADER-$BUILDTARGET.log
11 ARCHIVE_BASE=$ARCHIVE_BASE/Binaries
13 printi "Creating AROS/$BUILDTARGET bootiso binary packages (with $BOOTLOADER)..."
15 delete $BUILD_BASE/AROS
16 copy $SOURCE_AROS $BUILD_BASE/AROS
17 copy $SOURCE_CONTRIB $BUILD_BASE/AROS/contrib
19 cd $BUILD_BASE/AROS
20 execute ./configure --target=$BUILDTARGET --enable-ccache --with-bootloader=$BOOTLOADER --enable-build-type=nightly
21 make
23 ISOFILE=aros-$BUILDTARGET.iso
24 PACKAGE=$BASENAME-$BUILDTARGET-boot-iso
25 ARCHIVE=$ARCHIVE_BASE/$PACKAGE.zip
27 CONTRIBPACKAGE=$BASENAME-$BUILDTARGET-contrib
28 CONTRIBARCHIVE=$ARCHIVE_ROOT/$VERSION/Binaries/$CONTRIBPACKAGE.tar.bz2
29 if [ -f $CONTRIBARCHIVE ]; then
30 echo "--- Binary contrib package found, unarchiving..."
31 cd $BUILD_BASE/AROS/bin/$BUILDTARGET/AROS
32 execute tar xjf $CONTRIBARCHIVE
33 delete Extras
34 move $CONTRIBPACKAGE Extras
35 else
36 echo "--- Binary contrib package not found, skipping..."
39 cd $BUILD_BASE/AROS
40 make bootiso
41 makedir $BUILD_BASE/$PACKAGE
42 copy $BUILD_BASE/AROS/distfiles/$ISOFILE $BUILD_BASE/$PACKAGE
43 cd $BUILD_BASE
44 copy $SOURCE_AROS/LICENSE $PACKAGE
45 copy $SOURCE_AROS/ACKNOWLEDGEMENTS $PACKAGE
46 ziparc $ARCHIVE $PACKAGE
47 delete $PACKAGE
49 cd $ROOT
50 delete $BUILD_BASE/AROS
51 resetl