From ec725c9f7692d03961570b760b0e0b626f7bb48e Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 8 Feb 2008 18:43:52 +0000 Subject: [PATCH] fix makermcrpm for AIX git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@425 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- makermcrpm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/makermcrpm b/makermcrpm index 312799e11..60222a8ec 100755 --- a/makermcrpm +++ b/makermcrpm @@ -4,11 +4,14 @@ version='2.0' if [ "$OSNAME" = "AIX" ] then - echo '.svn' > /tmp/xcat-excludes - tar -X /tmp/xcat-excludes -cvf /opt/freeware/src/packages/SOURCES/xCAT-rmc.tar xCAT-rmc - gzip /opt/freeware/src/packages/SOURCES/xCAT-rmc.tar - cd ./xCAT-rmc + source=$PWD + cd /opt/freeware/src/packages/SOURCES + rm -f xCAT-rmc-$version; ln -s $source/xCAT-rmc xCAT-rmc-$version rm -f /opt/freeware/src/packages/SRPMS/xCAT-rmc*rpm /opt/freeware/src/packages/RPMS/ppc/xCAT-rmc*rpm + echo '.svn' > /tmp/xcat-excludes + tar -X /tmp/xcat-excludes -cvf xCAT-rmc-$version.tar xCAT-rmc-$version + gzip /opt/freeware/src/packages/SOURCES/xCAT-rmc-$version.tar + cd $source/xCAT-rmc rpm -ba xCAT-rmc.spec #rpm -Uvh /opt/freeware/src/packages/RPMS/ppc/xCAT-rmc*rpm