From ea1947ffcc606d757357398b24e74a3f4ecefa07 Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 20 Oct 2021 14:54:27 +0000 Subject: Initial commit from steward-fu release --- build-linux-opensuse.sh | 71 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 build-linux-opensuse.sh (limited to 'build-linux-opensuse.sh') diff --git a/build-linux-opensuse.sh b/build-linux-opensuse.sh new file mode 100644 index 0000000..68c2757 --- /dev/null +++ b/build-linux-opensuse.sh @@ -0,0 +1,71 @@ +#!/bin/sh + +TARGET=gnu-linux + +echo "### Building BennuGD Core ###" + +cd core +case $1 in + release) + ./configure --build=i586-suse-linux && make clean && make + ;; + + *) + make + ;; +esac +if [ $? -ne 0 ]; then + echo "*** ABORT ***" + exit 1 +fi +cd - + +echo "### Building BennuGD Modules ###" + +cd modules +case $1 in + release) + ./configure --build=i586-suse-linux && make clean && make + ;; + + *) + make + ;; +esac +if [ $? -ne 0 ]; then + echo "*** ABORT ***" + exit 1 +fi +cd - + +echo "### Building BennuGD Tools ###" + +cd tools/moddesc +case $1 in + release) + ./configure --build=i586-suse-linux && make clean && make + ;; + + *) + make + ;; +esac +if [ $? -ne 0 ]; then + echo "*** ABORT ***" + exit 1 +fi +cd - + +echo "### Copying files to bin folder ###" + +mkdir -p bin/$TARGET 2>/dev/null +#cp 3rdparty/des-4.04b/libdes.so bin/$TARGET +cp core/bgdi/src/.libs/bgdi bin/$TARGET +cp core/bgdc/src/bgdc bin/$TARGET +cp core/bgdrtm/src/.libs/libbgdrtm.so bin/$TARGET +cp $(find modules -name '*.so') bin/$TARGET +cp tools/moddesc/moddesc bin/$TARGET + +echo "### Build done! ###" + +exit 0 -- cgit v1.2.3