You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by om...@apache.org on 2011/03/04 05:08:38 UTC

svn commit: r1077374 - /hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh

Author: omalley
Date: Fri Mar  4 04:08:38 2011
New Revision: 1077374

URL: http://svn.apache.org/viewvc?rev=1077374&view=rev
Log:
commit 4f344494ff35dbe200da37b85b843c278ecc17ec
Author: Jeffrey Bowles <ja...@yahoo-inc.com>
Date:   Fri Apr 9 09:26:28 2010 -0700

    adding small bit of plumbing to run scripts -- while retrieving a secondary "git" repository before running those scripts.

Added:
    hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh

Added: hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh?rev=1077374&view=auto
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh (added)
+++ hadoop/common/branches/branch-0.20-security-patches/src/test/bin/runScript.sh Fri Mar  4 04:08:38 2011
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+TZ=PDT8PST  date
+TZ=EDT5EST  date
+
+if [ $# -eq 0 ]
+then
+	echo "No arguments given. Exiting." 1>&2
+	exit 1
+fi
+if [ "$GIT_REPO_NOT_NECESSARY" != true ]
+then
+	if [ -z "$GIT_REPO" ]
+	then
+		echo "Serious error: GIT_REPO was not specified." 1>&2
+		exit 1
+	fi
+	if [ -d hudson ]
+	then
+	    (cd hudson && git pull)
+	else
+	    # git clone ssh://gwbl2001.blue.ygrid.yahoo.com/grid/0/gs/gridre/hudson.git
+	    git clone $GIT_REPO
+	fi
+fi
+
+echo  ============  hostname = `hostname`
+
+echo "This script does not yet unset JAVA_CMD, LD_LIBRARY_PATH, and does not yet set JAVA_HOME." | fmt
+set -x
+exec $*