Added check-build.sh file to project to limit the platforms where it is

built.
This commit is contained in:
Juan Carlos Luciani 2006-11-18 07:27:13 +00:00
parent 0332b6610e
commit f08172971e
3 changed files with 21 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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