From 65865572f1c1e2476344096ba258d98f5f8a950e Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 22 Jun 2011 09:33:23 +0000 Subject: [PATCH] Beginning to create a test suite for libburn and cdrskin --- libburn/trunk/releng/releng_build_os | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 libburn/trunk/releng/releng_build_os diff --git a/libburn/trunk/releng/releng_build_os b/libburn/trunk/releng/releng_build_os new file mode 100644 index 00000000..f3eab23a --- /dev/null +++ b/libburn/trunk/releng/releng_build_os @@ -0,0 +1,40 @@ +#!/bin/sh + +set -e + +cd .. + +if [ ! -x configure ]; then + printf "\n*** please run ./bootstrap first.\n" + exit 1 +fi + +build() +{ + for F in ${1} + do + make clean + clear + printf "\n *** building with: %s\n" CPPFLAGS=-D${F} + sleep 1 + # libcdio is not autodetected by default; should be available everywhere + CPPFLAGS=-D${F} ./configure --enable-libcdio; make + done +} + +OS=`uname -o` + +case ${OS} in +GNU/Linux) + printf "OS: %s\n" ${OS} + sleep 1 + build "__linux Libburn_use_sg_dummY Libburn_use_libcdiO" +;; +*) + printf "Unknown OS: %s\n" ${OS} + exit 1 +;; +esac + +# just in case +unset CPPFLAGS