1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35:22 +02:00

[releng] make signed from current dir

This commit is contained in:
Martin Oberhuber 2010-05-24 20:37:45 +00:00
parent a835558a3b
commit 54a96da55c

View file

@ -18,13 +18,14 @@ curdir=`pwd`
cd `dirname $0` cd `dirname $0`
mydir=`pwd` mydir=`pwd`
cd "${curdir}" cd "${curdir}"
tmpdir=/tmp/${USER}.$$
# Accept environment variables set outside the script # Accept environment variables set outside the script
if [ "${UPDATE_SITE}" = "" ]; then if [ "${UPDATE_SITE}" = "" ]; then
UPDATE_SITE=$HOME/downloads-tm/updates/3.2milestones UPDATE_SITE=$HOME/downloads-tm/updates/3.2milestones
fi fi
if [ "${SIGNED_JAR_SOURCE}" = "" ]; then if [ "${SIGNED_JAR_SOURCE}" = "" ]; then
SIGNED_JAR_SOURCE=${curdir}/eclipse_ext/tm SIGNED_JAR_SOURCE=${tmpdir}/eclipse_ext/tm
fi fi
if [ "${BASEBUILDER}" = "" ]; then if [ "${BASEBUILDER}" = "" ]; then
BASEBUILDER=$HOME/ws2/eclipse BASEBUILDER=$HOME/ws2/eclipse
@ -45,15 +46,19 @@ echo "SIGNED_JAR_SOURCE: ${SIGNED_JAR_SOURCE}"
echo "BASEBUILDER: ${BASEBUILDER}" echo "BASEBUILDER: ${BASEBUILDER}"
echo "DROPDIR: ${DROPDIR}" echo "DROPDIR: ${DROPDIR}"
echo "" echo ""
if [ "$1" != "-go" ]; then
echo "use -go to actually perform the operation."
exit 0
fi
#Use Java5 on build.eclipse.org #Use Java5 on build.eclipse.org
#export PATH=/shared/dsdp/tm/ibm-java2-ppc64-50/bin:$PATH #export PATH=/shared/dsdp/tm/ibm-java2-ppc64-50/bin:$PATH
export PATH=/shared/dsdp/tm/ibm-java2-ppc64-50/jre/bin:/shared/dsdp/tm/ibm-java2-ppc64-50/bin:$PATH export PATH=/shared/dsdp/tm/ibm-java2-ppc64-50/jre/bin:/shared/dsdp/tm/ibm-java2-ppc64-50/bin:$PATH
#export PATH=${HOME}/ws2/IBMJava2-ppc-142/bin:$PATH #export PATH=${HOME}/ws2/IBMJava2-ppc-142/bin:$PATH
OUTPUT=${curdir}/output.$$ OUTPUT=${tmpdir}/output.$$
RESULT=${curdir}/result.$$ RESULT=${tmpdir}/result.$$
TMPD=${curdir}/tmp.$$ TMPD=${tmpdir}/tmp.$$
# Provision update site into SIGNED_JAR_SOURCE # Provision update site into SIGNED_JAR_SOURCE
if [ ! -d "${SIGNED_JAR_SOURCE}/eclipse" ]; then if [ ! -d "${SIGNED_JAR_SOURCE}/eclipse" ]; then
@ -83,6 +88,7 @@ if [ "${have_server}" = "" ]; then
win_server=`ls ${DROPDIR} | grep 'rseserver-.*-windows\.zip'` win_server=`ls ${DROPDIR} | grep 'rseserver-.*-windows\.zip'`
if [ "${win_server}" = "" ]; then if [ "${win_server}" = "" ]; then
echo "Error: No rseserver found in DROPDIR." echo "Error: No rseserver found in DROPDIR."
rm -rf ${tmpdir}
exit 1 exit 1
fi fi
if [ ! -d /home/data/httpd/download-staging.priv/dsdp/tm ]; then if [ ! -d /home/data/httpd/download-staging.priv/dsdp/tm ]; then
@ -120,6 +126,7 @@ if [ "${have_server}" = "" ]; then
if [ "${have_server}" = "" ]; then if [ "${have_server}" = "" ]; then
echo 'ERROR: signed rseserver-*.zip not found!' echo 'ERROR: signed rseserver-*.zip not found!'
echo "Please sign a server zip on build.eclipse.org, upload and retry." echo "Please sign a server zip on build.eclipse.org, upload and retry."
rm -rf ${tmpdir}
exit 1 exit 1
fi fi
fi fi
@ -198,16 +205,15 @@ echo ""
echo "ls ${OUTPUT}" echo "ls ${OUTPUT}"
ls ${OUTPUT} ls ${OUTPUT}
echo "" echo ""
echo "cd ${DROPDIR}" cd "${DROPDIR}"
if [ ! -d ${DROPDIR}.unsigned ]; then if [ ! -d ${DROPDIR}.unsigned ]; then
DROPBASE=`basename "${DROPDIR}"` DROPBASE=`basename "${DROPDIR}"`
echo "mkdir ../${DROPBASE}.unsigned" mkdir ../${DROPBASE}.unsigned
echo "tar cf - . | (cd ../${DROPBASE}.unsigned ; tar xf -)" tar cf - . | (cd ../${DROPBASE}.unsigned ; tar xf -)
echo "chmod -R g+w ../${DROPBASE}.unsigned" chmod -R g+w ../${DROPBASE}.unsigned
fi fi
echo "cp -f ${OUTPUT}/* ." echo "cp -f ${OUTPUT}/* ."
echo "rm -rf signed" echo "rm -rf signed"
echo "cd ${curdir}" echo "cd ${curdir}"
echo "rm -rf install-ws eclipse_ext" echo "rm -rf install-ws eclipse_ext"
echo "rm -rf ${OUTPUT}" echo "rm -rf ${tmpdir}"
echo "rm -rf ${RESULT}"