You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by al...@apache.org on 2012/11/15 18:05:20 UTC

svn commit: r1409884 - in /openjpa/site/trunk: build.sh start_markdown.sh

Author: allee8285
Date: Thu Nov 15 17:05:19 2012
New Revision: 1409884

URL: http://svn.apache.org/viewvc?rev=1409884&view=rev
Log:
Set environment variables iff not set.

Modified:
    openjpa/site/trunk/build.sh
    openjpa/site/trunk/start_markdown.sh

Modified: openjpa/site/trunk/build.sh
URL: http://svn.apache.org/viewvc/openjpa/site/trunk/build.sh?rev=1409884&r1=1409883&r2=1409884&view=diff
==============================================================================
--- openjpa/site/trunk/build.sh (original)
+++ openjpa/site/trunk/build.sh Thu Nov 15 17:05:19 2012
@@ -2,10 +2,14 @@
 
 # path where you checked out https://svn.apache.org/repos/infra/websites/cms/build
 # change this to match your environment
-CMS_BUILD_PATH=~/cms/cms/build
+if [ "$CMS_BUILD_PATH" == "" ]; then
+  CMS_BUILD_PATH=~/cms/cms/build
+fi
 
 # path to where you checked out https://svn.apache.org/repos/asf/openjpa/site/trunk
-SOURCE=~/work/openjpa/site/trunk
+if [ "$SOURCE" == "" ]; then
+  SOURCE=~/work/openjpa/site/trunk
+fi
 
 # target dir for website files
 TARGET=${SOURCE}/target

Modified: openjpa/site/trunk/start_markdown.sh
URL: http://svn.apache.org/viewvc/openjpa/site/trunk/start_markdown.sh?rev=1409884&r1=1409883&r2=1409884&view=diff
==============================================================================
--- openjpa/site/trunk/start_markdown.sh (original)
+++ openjpa/site/trunk/start_markdown.sh Thu Nov 15 17:05:19 2012
@@ -3,7 +3,9 @@
 # path to https://svn.apache.org/repos/infra/websites/cms/build
 # change this to match your environment
 
-CMS_BUILD_PATH=~/cms/cms/build
+if [ "$CMS_BUILD_PATH" == "" ]; then
+  CMS_BUILD_PATH=~/cms/cms/build
+fi
 
 export MARKDOWN_SOCKET=${CMS_BUILD_PATH}/markdown.socket
 export PYTHONPATH=${CMS_BUILD_PATH}