scripts: enable use of built up front cross compiler to all packages
[AROS.git] / scripts / nightly / pkg / contrib
blob949babeccee5f2ea75415b7f7f24375d8084c8fd
1 #!/bin/zsh
2 # Creates generic contrib package.
4 source $SP/setup
6 # The log-name MUST match the name of the package script
7 setl contrib-$BUILDTARGET.log
9 ARCHIVE_BASE=$ARCHIVE_BASE/Binaries
11 printi "Creating AROS/$BUILDTARGET contrib binary package..."
13 delete $BUILD_BASE/AROS
14 copy $SOURCE_AROS $BUILD_BASE/AROS
15 copy $SOURCE_CONTRIB $BUILD_BASE/AROS/contrib
17 cd $BUILD_BASE/AROS
18 execute ./configure --target=$BUILDTARGET --enable-ccache --enable-build-type=nightly $PORTSSOURCESOPT $AROSTOOLCHAININSTALLOPT $AROSTOOLCHAINOPT
19 make -j $MAKE_JOBS tools mmake contrib
21 PACKAGE=$BASENAME-$BUILDTARGET-contrib
22 ARCHIVE=$ARCHIVE_BASE/$PACKAGE.tar.bz2
24 if [ -z ${BUILDTARGETDIR+x} ]; then BUILDTARGETDIR=$BUILDTARGET; fi
26 cd $BUILD_BASE/AROS/bin/$BUILDTARGETDIR/AROS
27 mkdir $PACKAGE
28 move Extras $PACKAGE/
29 move Development $PACKAGE/
30 move Libs $PACKAGE/
31 mkdir -p $PACKAGE/Prefs/Env-Archive/SYS
32 move Prefs/Env-Archive/SYS/Packages $PACKAGE/Prefs/Env-Archive/SYS/
33 copy $SOURCE_AROS/LICENSE $PACKAGE
34 copy $SOURCE_AROS/ACKNOWLEDGEMENTS $PACKAGE
35 archive $ARCHIVE $PACKAGE
37 cd $ROOT
38 delete $BUILD_BASE/AROS
39 resetl