From f08172971e648dee1ed1dee2eac3e96f73c0db51 Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Sat, 18 Nov 2006 07:27:13 +0000 Subject: [PATCH] Added check-build.sh file to project to limit the platforms where it is built. --- CASA-auth-token/server-java/autogen.sh | 2 +- .../server-java/package/linux/Makefile.am | 7 ++++++- .../server-java/package/linux/check-build.sh | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100755 CASA-auth-token/server-java/package/linux/check-build.sh diff --git a/CASA-auth-token/server-java/autogen.sh b/CASA-auth-token/server-java/autogen.sh index b0aaea55..cc75ee3a 100755 --- a/CASA-auth-token/server-java/autogen.sh +++ b/CASA-auth-token/server-java/autogen.sh @@ -6,7 +6,7 @@ test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir -PROJECT=CASA +PROJECT=CASA_auth_token_svc TEST_TYPE=-f FILE=configure.in diff --git a/CASA-auth-token/server-java/package/linux/Makefile.am b/CASA-auth-token/server-java/package/linux/Makefile.am index 095afe6b..eea765f3 100644 --- a/CASA-auth-token/server-java/package/linux/Makefile.am +++ b/CASA-auth-token/server-java/package/linux/Makefile.am @@ -18,7 +18,12 @@ # # ####################################################################### -#how do you get the version?? + +SUBDIRS = +DIST_SUBDIRS = + +EXTRA_DIST = CASA_auth_token_svc.changes CASA_auth_token_svc.spec.in check-build.sh + RPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).$(target_cpu).rpm #SRPM_FILE = $(PACKAGE)-$(VERSION)-$(RELEASE).src.rpm SRPM_FILE = $(PACKAGE)-$(VERSION)*.src.rpm diff --git a/CASA-auth-token/server-java/package/linux/check-build.sh b/CASA-auth-token/server-java/package/linux/check-build.sh new file mode 100755 index 00000000..e22390e5 --- /dev/null +++ b/CASA-auth-token/server-java/package/linux/check-build.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +echo "Testing if this arch is valid for this package" +case `uname -m` in + i?86|x86_64) + echo ... valid arch, will build... + ;; + *) + echo ... invalid arch, will not build on this arch + exit 1 + ;; +esac + +exit 0