From d2ca68ea4ea07fbb622d559c30ac3cdae1f5e6e6 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 27 Nov 2007 16:05:05 +0000 Subject: [PATCH] Added the AIX equivalent of "cp -a ..." so that the xCAT-server package can be built on AIX. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@86 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/xCAT-server.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server-2.0/xCAT-server.spec b/xCAT-server-2.0/xCAT-server.spec index 33fb66358..21e6d2cce 100644 --- a/xCAT-server-2.0/xCAT-server.spec +++ b/xCAT-server-2.0/xCAT-server.spec @@ -41,7 +41,12 @@ mkdir -p $RPM_BUILD_ROOT/opt/csm/pm/dsh/Context mkdir -p $RPM_BUILD_ROOT/usr/lib/xcat/monitoring/samples +%ifos linux cp -a usr/share/xcat/install/* $RPM_BUILD_ROOT/usr/share/xcat/install/ +%else +cp -hpR usr/share/xcat/install/* $RPM_BUILD_ROOT/usr/share/xcat/install/ +%endif + cp usr/sbin/* $RPM_BUILD_ROOT/usr/sbin chmod 755 $RPM_BUILD_ROOT/usr/sbin/*