You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2013/03/15 23:31:03 UTC

svn commit: r1457151 - in /pig/trunk: CHANGES.txt bin/pig

Author: daijy
Date: Fri Mar 15 22:31:02 2013
New Revision: 1457151

URL: http://svn.apache.org/r1457151
Log:
PIG-3244: Make PIG_HOME configurable

Modified:
    pig/trunk/CHANGES.txt
    pig/trunk/bin/pig

Modified: pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/trunk/CHANGES.txt?rev=1457151&r1=1457150&r2=1457151&view=diff
==============================================================================
--- pig/trunk/CHANGES.txt (original)
+++ pig/trunk/CHANGES.txt Fri Mar 15 22:31:02 2013
@@ -28,6 +28,8 @@ PIG-3174:  Remove rpm and deb artifacts 
 
 IMPROVEMENTS
 
+PIG-3244: Make PIG_HOME configurable (robert.schooley@gmail.com via daijy)
+
 PIG-3233: Deploy a Piggybank Jar (njw45 via cheolsoo)
 
 PIG-3245: Documentation about HBaseStorage (Daisuke Kobayashi via cheolsoo)

Modified: pig/trunk/bin/pig
URL: http://svn.apache.org/viewvc/pig/trunk/bin/pig?rev=1457151&r1=1457150&r2=1457151&view=diff
==============================================================================
--- pig/trunk/bin/pig (original)
+++ pig/trunk/bin/pig Fri Mar 15 22:31:02 2013
@@ -76,7 +76,9 @@ script="$(basename -- "$this")"
 this="$bin/$script"
 
 # the root of the Pig installation
-export PIG_HOME=`dirname "$this"`/..
+if [ -z "$PIG_HOME" ]; then
+    export PIG_HOME=`dirname "$this"`/..
+fi
 
 if [ -z "$PIG_CONF_DIR" ]; then
     if [ -f ${PIG_HOME}/conf/pig.properties ]; then