diff options
Diffstat (limited to 'build-linux-opensuse.sh')
-rw-r--r-- | build-linux-opensuse.sh | 71 |
1 files changed, 71 insertions, 0 deletions
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 |