From 7014946c36672eafb882668e5d8fdea6e5f02427 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 25 Mar 2008 01:37:51 +0000 Subject: [PATCH] Add support for building ppc on x86 for metapackage git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/mkrpm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xCAT/mkrpm b/xCAT/mkrpm index 84b6d6b46..11c642338 100755 --- a/xCAT/mkrpm +++ b/xCAT/mkrpm @@ -38,6 +38,10 @@ else tar --exclude .svn -czvf /usr/src/$pkg/SOURCES/templates.tar.gz templates cp xcat.conf /usr/src/$pkg/SOURCES rm -f /usr/src/$pkg/SRPMS/xCAT-2.0*rpm /usr/src/$pkg/RPMS/*/xCAT-2.0*rpm - rpmbuild -ba xCAT.spec + if [ ! -z "$1" ]; then + rpmbuild -ba xCAT.spec --target $1 + else + rpmbuild -ba xCAT.spec + fi cd - fi