From 049f6275344d78fe8cda74a6596e3324fac0e097 Mon Sep 17 00:00:00 2001 From: nott Date: Tue, 4 Mar 2008 14:18:40 +0000 Subject: [PATCH] Use different cp options for AIX. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/xCAT-server.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server-2.0/xCAT-server.spec b/xCAT-server-2.0/xCAT-server.spec index d7b560e6c..69a1da518 100644 --- a/xCAT-server-2.0/xCAT-server.spec +++ b/xCAT-server-2.0/xCAT-server.spec @@ -51,8 +51,14 @@ cp -hpR share/xcat/install/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/ cp -hpR share/xcat/netboot/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/ %endif +%ifos linux cp -d sbin/* $RPM_BUILD_ROOT/%{prefix}/sbin chmod 755 $RPM_BUILD_ROOT/%{prefix}/sbin/* +%else +cp -h sbin/* $RPM_BUILD_ROOT/%{prefix}/sbin +chmod -h 755 $RPM_BUILD_ROOT/%{prefix}/sbin/* +%endif + #cp rc.d/* $RPM_BUILD_ROOT/%{prefix}/rc.d #chmod 755 $RPM_BUILD_ROOT/%{prefix}/rc.d/*