cleanup, expecially quotes in regex expressions
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkCharset.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkCharset.sh
new file mode 100644
index 0000000..7911b73
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkCharset.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+locale charmap
+
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkMirrors.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkMirrors.sh
index 94def9c..e40db04 100644
--- a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkMirrors.sh
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/checkMirrors.sh
@@ -64,7 +64,7 @@
urls=
ftponly=0
-httponly=0
+httponly=1
protocol=
while getopts 'hvfpt:' OPTION
do
@@ -110,10 +110,19 @@
echo "urls: " $urls
fi
-if [ -z ${urls} ]
+if [ -z "${urls}" ]
then
-urls="/releases/ganymede/ /releases/staging/ /releases/galileo/ /eclipse/updates/ /webtools/updates/ /webtools/milestones/"
+ urls="/releases/helios/201006110900/aggregate/ \
+ /releases/helios/201006230900/aggregate/ \
+ /releases/galileo/200909241140/aggregate/ \
+ /releases/galileo/201002260900/aggregate/ \
+ /eclipse/updates/3.6/ /webtools/updates/3.1/3.1.1/200909252200/ \
+ /webtools/updates/3.1/3.1.2/201002260900/ \
+ /webtools/repository/helios/ \
+ /webtools/downloads/drops/R3.2.0/R-3.2.0-20100615235519/repository/ \
+ /webtools/downloads/drops/R3.2.1/R-3.2.1-20100730021206/repository"
+
fi
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dounpack.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dounpack.sh
index ffb8b99..d514c41 100644
--- a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dounpack.sh
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dounpack.sh
@@ -3,7 +3,7 @@
JAR_FILE=$PACK_FILE".jar"
-/shared/webtools/apps/ibm-java-ppc-604/jre/bin/unpack200 -v $PACK_FILE $JAR_FILE
+/shared/common/ibm-java-ppc-605/jre/bin/unpack200 -v $PACK_FILE $JAR_FILE
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dowork.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dowork.sh
index 290782d..d914ede 100644
--- a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dowork.sh
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/dowork.sh
@@ -1,3 +1,3 @@
-#cd /shared/orbit
-screen -D -RR
+cd /shared/webtools
+screen -D -RR -h 5000
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/helios_properties.shsource.HOLD b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/helios_properties.shsource.HOLD
new file mode 100644
index 0000000..e258adf
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/helios_properties.shsource.HOLD
@@ -0,0 +1,52 @@
+#!/usr/bin/env bash
+
+# common variables used in utility scripts
+# (note: at this point, not all are necessarily used)
+
+# the top level directory, that should "contain" all else involved with build, control and output
+export BUILD_HOME=${HOME}/temp/helios
+# a common variation for someone doing a local build on their own machine
+#export BUILD_HOME=${HOME}/buckyBuild
+
+
+RELENG_TOOLS=org.eclipse.helios.tools
+
+# platform install. One level above what will contain the 'eclipse' directory.
+export ECLIPSE_INSTALL=${BUILD_HOME}/prereqs
+export ECLIPSE_HOME=${ECLIPSE_INSTALL}/eclipse
+export ECLIPSE_B3_HOME=${ECLIPSE_INSTALL}/b3
+
+
+# common location to store pre-reqs to avoid re-downloading Platforms, etc.
+export PREREQS_CACHE=${BUILD_HOME}/prereqsCache
+
+
+export ANT_HOME=/shared/webtools/apps/apache-ant-1.7.1
+
+export JAVA_5_HOME=/shared/webtools/apps/ibm-java2-sdk-5.0-6.0-linux-ppc
+export JAVA_6_HOME=/shared/webtools/apps/ibm-java2-i386-60
+
+export JAVA_HOME=$JAVA_5_HOME
+
+export JAVA_EXEC_DIR=${JAVA_HOME}/jre/bin
+export JAVA_CMD=${JAVA_EXEC_DIR}/java
+
+stagingDirectory=~/temp/var/www/html/buildhome/releases/staging
+
+releaseDirectory=~/temp/var/www/html/buildhome/releases/helios
+
+# Holds a list of dated directories, each with a build result
+BUILD_RESULTS=${BUILD_HOME}/buildresults
+
+TEMP_STAGING_RESULTS=i~/temp/downloads/helios
+
+#Note: this directory on build.eclipse.org has an alias so that
+#it is accessible as a pseudo update site via this URL:
+#http://build.eclipse.org/galileo/staging/
+
+#It can not really be used as an update site
+#as an update site, since the mirror URLs in the
+#artifacts.jar and content.jar are set to the
+#eventual /releases/galileo.
+#It can be used, however, to make sure categories are
+#showing up correctly.
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/nHandles.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/nHandles.sh
new file mode 100644
index 0000000..78a115a
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/nHandles.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+echo;
+PID=$1
+
+if [ ! -z $PID ] ; then
+ # I've found lsof is in /user/sbin on some machines
+ nhandles=`/usr/bin/lsof -p $PID | wc -l`
+ echo " process PID: " $PID
+ echo " Number of handles in process: $nhandles"
+else
+ PID=`pgrep -f configure=/opt/users/hudsonbuild/`
+ if [ ! -z $PID ] ; then
+ nhandles=`/usr/bin/lsof -p $PID | wc -l`
+ echo " hudson process PID: " $PID
+ echo " Number of handles in process: $nhandles"
+ else
+ echo " PID $PID not found/defined (maybe pass in as first argument)?."
+ fi
+fi
+echo
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/nThreads.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/nThreads.sh
new file mode 100644
index 0000000..3a3db5a
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/nThreads.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+echo;
+PID=$1
+
+if [ ! -z $PID ] ; then
+ nthreads=`ps -mp $PID | wc -l`
+ echo " process PID: " $PID
+ echo " Number of threads in process: $nthreads"
+else
+ PID=`pgrep -f configure=/opt/users/hudsonbuild/`
+ if [ ! -z $PID ] ; then
+ nthreads=`ps -mp $PID | wc -l`
+
+ echo " hudson process PID: " $PID
+ echo " Number of threds n process: $nthreads"
+ else
+ echo " PID $PID not found/defined (maybe pass in as first argument)?."
+ fi
+fi
+echo
+
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/php2html.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/php2html.sh
new file mode 100644
index 0000000..f82f891
--- /dev/null
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/php2html.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+originalFile="${1}"
+
+echo $originalFile
+
+currentdir=`pwd`
+echo $currentdir
+
+php $originalFile > ${currentdir}/index.html
+
+
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verify.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verify.sh
index 3ce9f3f..c6b6af7 100644
--- a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verify.sh
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verify.sh
@@ -7,10 +7,14 @@
#JAVA_HOME=/shared/common/ibm-java-ppc-604
#JAVA_HOME=/shared/common/ibm-java-jdk-ppc-60
+# if not provided by calling program, assume a simple place
if [[ -z $VERIFYOUTDIR ]]
then
- VERIFYOUTDIR="${HOME}"/verifyoutput
+ VERIFYOUTDIR="${HOME}"/temp/
+ mkdir -p $VERIFYOUTDIR
fi
+
+
PPAT_PACKGZ="(.*).pack.gz$"
if [[ "$jarname" =~ $PPAT_PACKGZ ]]
then
diff --git a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verifydir.sh b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verifydir.sh
index f06473d..64e4342 100644
--- a/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verifydir.sh
+++ b/plugins/org.eclipse.wtp.releng.tools/examplebinscripts/verifydir.sh
@@ -27,9 +27,16 @@
rm -fr "${VERIFYOUTDIR}"/*
fi
-echo " verify directory: ${loc}";
-echo " for pattern: ${pat}";
+echo;
+echo "verify directory: ${loc}";
+echo " for pattern: ${pat}";
echo " output files in " "${VERIFYOUTDIR}"
+echo;
find "${loc}" -regex "${pat}" -exec verify.sh '{}' \;
+echo;
+echo "verify directory: ${loc}";
+echo " for pattern: ${pat}";
+echo " output files in " "${VERIFYOUTDIR}"
+echo;
\ No newline at end of file