From 97110bca2b253a8e812ed466492584d6edf9c349 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 22 Jul 2008 20:04:41 +0000 Subject: [PATCH] -Fix xCATsn mkrpm script to allow build system to build other architectures git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1926 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCATsn/mkrpm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCATsn/mkrpm b/xCATsn/mkrpm index 49e111aa34..98ac062b24 100755 --- a/xCATsn/mkrpm +++ b/xCATsn/mkrpm @@ -33,6 +33,10 @@ else tar --exclude .svn -czf /usr/src/$pkg/SOURCES/license.tar.gz LICENSE.html cp xcat.conf /usr/src/$pkg/SOURCES rm -f /usr/src/$pkg/SRPMS/xCATsn-$VER*rpm /usr/src/$pkg/RPMS/*/xCATsn-$VER*rpm - rpmbuild -ba xCATsn.spec + if [ ! -z "$1" ]; then + rpmbuild -ba xCAT.spec --target $1 + else + rpmbuild -ba xCAT.spec + fi cd - fi