|
From: <no...@us...> - 2008-07-22 13:37:10
|
Revision: 1918
http://xcat.svn.sourceforge.net/xcat/?rev=1918&view=rev
Author: nott
Date: 2008-07-22 13:37:19 +0000 (Tue, 22 Jul 2008)
Log Message:
-----------
Add mkAIXsnap build script.
Modified Paths:
--------------
xcat-core/trunk/perl-xCAT/xCAT/RSH.pm
Added Paths:
-----------
xcat-core/trunk/mkAIXsnap
Added: xcat-core/trunk/mkAIXsnap
===================================================================
--- xcat-core/trunk/mkAIXsnap (rev 0)
+++ xcat-core/trunk/mkAIXsnap 2008-07-22 13:37:19 UTC (rev 1918)
@@ -0,0 +1,107 @@
+#!/bin/sh
+
+# mkAIXsnap
+#
+# This script can be used to extract, build, tar, compress and upload
+# the latest xCAT for AIX code.
+# - this will be the latest development snapshot
+# - the snapshot should be created as needed
+# - this script should run in the ../xcat-core/trunk directory
+# (ex. /u/ntest/svn/workspace/xcat/xcat-core/trunk)
+#
+# - you will need SourceForge ssh access set up
+# ( get the contents of .ssh/id_rsa.pub on your local machine
+# and add it to .ssh/authorized_keys on shell1.sf.net in
+# your home dir, ex. /home/users/n/no/no/nott )
+# - the tarball goes to:
+# /home/groups/x/xc/xcat/htdocs/aix/devel
+# - the individual RPMs go to:
+# /home/groups/x/xc/xcat/htdocs/aix/devel/core-snap
+# - nothing will be added to the release download area
+# - Since there is no release available for AIX yet
+# each snap is complete
+#
+BLDTOP=`pwd`
+RPMDIR=$BLDTOP/aix-core-snap
+
+# upload to SourceForge ??
+UPLOAD=0
+if [ "$1" == "UPLOAD" -o "$1" == "upload" ]; then
+ UPLOAD=1
+fi
+
+if [ -d $RPMDIR ]
+then
+ # clean it up
+ rm -f $RPMDIR/instxcat
+ rm -f $RPMDIR/*.rpm
+ rm -f $RPMDIR/flist
+ rm -f $RPMDIR/*.gz
+else
+ mkdir -p $RPMDIR
+fi
+
+#
+# do an update from the trunk directory level
+#
+#svn update | tee $BLDTOP/coresvnup
+svn update
+
+# create a simple install script
+echo "# xCAT on AIX - install script" > $RPMDIR/instxcat
+
+#
+# build the RPMs
+#
+./makeperlxcatrpm
+mv /opt/freeware/src/packages/RPMS/ppc/perl-xCAT-2.1*rpm $RPMDIR/
+echo "rpm -Uvh perl-xCAT-2.1*rpm" >> $RPMDIR/instxcat
+
+./makeclientrpm
+mv /opt/freeware/src/packages/RPMS/ppc/xCAT-client-2.1*rpm $RPMDIR/
+echo "rpm -Uvh xCAT-client-2.1*rpm" >> $RPMDIR/instxcat
+
+./makeserverrpm
+mv /opt/freeware/src/packages/RPMS/ppc/xCAT-server-2.1*rpm $RPMDIR/
+echo "rpm -Uvh xCAT-server-2.1*rpm" >> $RPMDIR/instxcat
+
+./makermcrpm
+mv /opt/freeware/src/packages/RPMS/ppc/xCAT-rmc-2.1*rpm $RPMDIR/
+echo "rpm -Uvh xCAT-rmc-2.1*rpm" >> $RPMDIR/instxcat
+
+cd ./xCAT
+./mkrpm
+mv /opt/freeware/src/packages/RPMS/ppc/xCAT-2.1*rpm $RPMDIR/
+echo "rpm -Uvh xCAT-2.1*rpm" >> $RPMDIR/instxcat
+
+#
+# create the tar.gz file to upload
+#
+cd $RPMDIR
+chmod +x ./instxcat
+
+# add all the file names to flist
+echo "instxcat" > ./flist
+ls *.rpm >> ./flist
+
+#TIME=`date +%Y%m%d%H%M`
+tar -cvf core-aix-snap.tar -L flist
+gzip core-aix-snap.tar
+
+#
+# upload the tar file and RPMs to SourceForge
+#
+if [ $UPLOAD == 1 ]; then
+
+ # clear out the old files
+ ssh no...@sh... "cd /home/groups/x/xc/xcat/htdocs/aix/devel; rm -f *.gz; cd /home/groups/x/xc/xcat/htdocs/aix/devel/core-snap; rm -f *.rpm"
+
+ scp *.rpm no...@sh...:/home/groups/x/xc/xcat/htdocs/aix/devel/core-snap
+
+ scp core-aix-snap.tar.gz no...@sh...:/home/groups/x/xc/xcat/htdocs/aix/devel
+
+# rsync -avP -e ssh core-aix-snap.tar.gz no...@fr...:uploads/
+
+fi
+
+exit 0;
Property changes on: xcat-core/trunk/mkAIXsnap
___________________________________________________________________
Added: svn:executable
+ *
Modified: xcat-core/trunk/perl-xCAT/xCAT/RSH.pm
===================================================================
--- xcat-core/trunk/perl-xCAT/xCAT/RSH.pm 2008-07-22 12:48:31 UTC (rev 1917)
+++ xcat-core/trunk/perl-xCAT/xCAT/RSH.pm 2008-07-22 13:37:19 UTC (rev 1918)
@@ -3,6 +3,7 @@
package xCAT::RSH;
# cannot use strict
+# cannot use strict
use base xCAT::DSHRemoteShell;
# Determine if OS is AIX or Linux
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|