From a74e8a1fcc6afc6df742fd64aed534135daee370 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Mon, 3 Oct 2011 10:24:06 +0000 Subject: [PATCH] [releng] make signed and add TM-repo.zip automagically --- .../bin/doit_irsbuild.sh | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh b/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh index fc308c829d7..ebfc495c18c 100755 --- a/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh +++ b/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh @@ -41,6 +41,7 @@ buildType=$1 buildId=$2 case x$buildType in xP|xN|xI|xS|xR) ok=1 ;; + xH) mapTag=R3_3_maintenance ; ok=1 ;; xM) mapTag=R3_2_maintenance ; ok=1 ;; xJ) mapTag=R3_1_maintenance ; ok=1 ;; xK|xL) mapTag=R3_0_maintenance ; ok=1 ;; @@ -116,6 +117,7 @@ FILES=`ls RSE-SDK-*.zip 2>/dev/null` echo "FILES=$FILES" if [ -f package.count -a "$FILES" != "" ]; then echo "package.count found, release seems ok" + realstamp=`echo $FILES | sed -e 's,RSE-SDK-,,g' -e 's,.zip,,g'` if [ ${buildType} = S -o ${buildType} = R ]; then #hide the release for now until it is tested #mirrors will still pick it up @@ -154,6 +156,41 @@ if [ -f package.count -a "$FILES" != "" ]; then cd $HOME/downloads-tm/signedUpdates/bin cvs update ./mkTestUpdates.sh + + echo "Creating TM-repo-${realstamp}.zip" + cd .. + ISITE=3.4interim + if [ -d ${ISITE} ]; then + rm -rf ${ISITE} + fi + FILES=`ls` + tar cf - ${FILES} | (mkdir ${ISITE} ; cd ${ISITE} ; tar xf -) + if [ -d ${ISITE} ]; then + cd ${ISITE} + rm -rf plugins/*.pack.gz features/*.pack.gz + cd bin + ./mkTestUpdates.sh + cd .. + rm -rf bin CVS .cvsignore web/CVS + rm ../TM-repo-*.zip + zip -r ../TM-repo-${realstamp}.zip . + cd .. + rm -rf ${ISITE} + cd $HOME/ws2/publish + cd $DIRS + cp $HOME/downloads-tm/signedUpdates/TM-repo-${realstamp}.zip . + count=`cat package.count` + count=`expr $count + 1` + rm package.count + echo $count > package.count + echo "Successfully created TM-repo-${realstamp}.zip" + + echo "Making signed..." + UPDATE_SITE=$HOME/downloads-tm/signedUpdates + export UPDATE_SITE + $HOME/ws2/org.eclipse.rse.build/bin/make_signed.sh -go + echo "Made signed." + fi fi cd "$curdir"