Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'releng/org.eclipse.rse.build/bin/doit_irsbuild.sh')
-rwxr-xr-xreleng/org.eclipse.rse.build/bin/doit_irsbuild.sh166
1 files changed, 0 insertions, 166 deletions
diff --git a/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh b/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh
deleted file mode 100755
index 8e3c2d6c8..000000000
--- a/releng/org.eclipse.rse.build/bin/doit_irsbuild.sh
+++ /dev/null
@@ -1,166 +0,0 @@
-#!/bin/sh
-#*******************************************************************************
-# Copyright (c) 2006, 2009 Wind River Systems, Inc.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# Martin Oberhuber - initial API and implementation
-#*******************************************************************************
-#:#
-#:# Bootstrapping script to perform S-builds and R-builds on build.eclipse.org
-#:# Will build based on HEAD of all mapfiles, and update the test32Updates as well
-#:#
-#:# Usage:
-#:# doit_irsbuild.sh {buildType} [buildId] [maptag]
-#:# Examples:
-#:# doit_irsbuild.sh R 1.0
-#:# doit_irsbuild.sh S 1.0M5 S1_0M5
-#:# doit_irsbuild.sh I
-
-#nothing we do should be hidden from the world
-umask 22
-
-curdir=`pwd`
-cd `dirname $0`
-mydir=`pwd`
-echo ${mydir}
-
-#Use Java5 on build.eclipse.org
-#export PATH=/shared/tools/tm/jdk-1.5/bin:$PATH
-export PATH=/shared/tools/tm/jdk-1.5/jre/bin:/shared/tools/tm/jdk-1.5/bin:$PATH
-#export PATH=${HOME}/ws2/IBMJava2-ppc-142/bin:$PATH
-
-
-#Get parameters
-mapTag=HEAD
-buildType=$1
-buildId=$2
-case x$buildType in
- xP|xN|xI|xS) ok=1 ;;
- xR|xM) mapTag=R3_2_maintenance ; ok=1 ;;
- xJ) mapTag=R3_1_maintenance ; ok=1 ;;
- xK|xL) mapTag=R3_0_maintenance ; ok=1 ;;
- *) ok=0 ;;
-esac
-if [ "$3" != "" ]; then
- mapTag=$3
-fi
-if [ $ok != 1 ]; then
- grep '^#:#' $0 | grep -v grep | sed -e 's,^#:#,,'
- cd ${curdir}
- exit 0
-fi
-
-#Remove old logs and builds
-echo "Removing old logs and builds..."
-cd $HOME/ws_32x
-#rm log-*.txt
-if [ -d working/build ]; then
- rm -rf working/build
-fi
-if [ -d working/package ]; then
- rm -rf working/package
-fi
-
-#Do the main job
-echo "Updating builder from CVS..."
-cd org.eclipse.rse.build
-stamp=`date +'%Y%m%d-%H%M'`
-CHANGES=`cvs -nq update -r ${mapTag} | head -1`
-if [ "${CHANGES}" = "" ]; then
- echo "Build ${buildType}${buildId} : ${mapTag} : ${stamp}"
- echo "Build canceled, no mapfile or config changed in org.eclipse.rse.build."
- exit 0
-fi
-log=$HOME/ws_32x/log-${buildType}$stamp.txt
-touch $log
-#cvs -q update -RPd >> $log 2>&1
-cvs -q update -r ${mapTag} -RPd >> $log 2>&1
-daystamp=`date +'%Y%m%d*%H'`
-
-echo "Running the builder..."
-./nightly.sh ${mapTag} ${buildType} ${buildId} >> $log 2>&1
-tail -30 $log
-
-#update the main download and archive pages: build.eclipse.org only
-if [ -d /home/data/httpd/archive.eclipse.org/tm/downloads ]; then
- cd /home/data/httpd/archive.eclipse.org/tm/downloads
- cvs -q update -RPd >> $log 2>&1
- chgrp tools.tm * CVS/* 2>/dev/null
- cd /home/data/httpd/download.eclipse.org/tm/downloads
- cvs -q update -RPd >> $log 2>&1
- chgrp tools.tm * CVS/*
-
- #Fixup permissions and group id on download.eclpse.org (just to be safe)
- echo "Fixup: chgrp -R tools.tm drops/${buildType}*${daystamp}*"
- chgrp -R tools.tm drops/${buildType}*${daystamp}*
- chmod -R g+w drops/${buildType}*${daystamp}*
-fi
-
-#Check the publishing
-cd $HOME/ws_32x/publish
-DIRS=`ls -dt ${buildType}*${daystamp}* | head -1 2>/dev/null`
-cd ${DIRS}
-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"
- if [ ${buildType} = S -o ${buildType} = R ]; then
- #hide the release for now until it is tested
- #mirrors will still pick it up
- mv package.count package.count.orig
- #Do not sign stable or R-builds since we want that signing done
- #via the update site in order to ensure that features get signed
- #DO_SIGN=1
- fi
-
- # Always sign maintenance builds for immediate consumption in patches
- case x${buildType} in
- xJ|xK|xL|xM) DO_SIGN=1 ;;
- esac
-
- #if [ "$DO_SIGN" = "1" ]; then
- #sign the zipfiles
- #temporarily disabled, this is not a good use of processing power!
- #mkdir signer
- #cp rseserver-*-windows.zip signer
- #cd signer
- #${mydir}/batch_sign.sh `pwd`
- #cd ..
- #fi
-
- if [ ${buildType} = N -a -d ../N.latest ]; then
- #update the doc server
- rm -f ../N.latest/RSE-*.zip
- rm -f ../N.latest/TM-*.zip
- cp -f RSE-SDK-*.zip ../N.latest/RSE-SDK-latest.zip
- cp -f TM-discovery-*.zip ../N.latest/TM-discovery-latest.zip
- chgrp tools.tm ../N.latest/*.zip
- chmod g+w ../N.latest/*.zip
- if [ -d /shared/tools/tm/public_html/tm/downloads/drops/N.latest ]; then
- cp -f ../N.latest/* /shared/tools/tm/public_html/tm/downloads/drops/N.latest/
- chmod -R g+w /shared/tools/tm/public_html/tm/downloads/drops
- fi
- fi
-
- if [ ${buildType} != N ]; then
- #Update the test32Updates site
- echo "Refreshing update site"
- cd $HOME/downloads-tm/test32Updates/bin
- cvs update
- ./mkTestUpdates.sh
- #Update the signed32Updates site
- echo "Refreshing signed32Updates site"
- cd $HOME/downloads-tm/signed32Updates/bin
- cvs update
- ./mkTestUpdates.sh
- fi
-
- cd "$curdir"
-else
- echo "package.count missing, release seems failed"
-fi
-chgrp tools.tm $log

Back to the top