[PC-BSD Commits] r5278 - pbibuild/pbibuilder7/scripts

svn at pcbsd.org svn at pcbsd.org
Mon Dec 7 08:11:37 PST 2009


Author: kris
Date: 2009-12-07 08:11:37 -0800 (Mon, 07 Dec 2009)
New Revision: 5278

Modified:
   pbibuild/pbibuilder7/scripts/3.1.makeinmate.sh
   pbibuild/pbibuilder7/scripts/3.makepbi.sh
Log:

Updated pbibuilder7 to also include the pre-set vars for build.sh script



Modified: pbibuild/pbibuilder7/scripts/3.1.makeinmate.sh
===================================================================
--- pbibuild/pbibuilder7/scripts/3.1.makeinmate.sh	2009-12-07 16:00:30 UTC (rev 5277)
+++ pbibuild/pbibuilder7/scripts/3.1.makeinmate.sh	2009-12-07 16:11:37 UTC (rev 5278)
@@ -111,6 +111,13 @@
 # Make all the *.tbz pkg files now
 pkg_create -j -b \*
 
+# Set some variables for build.sh to use
+CPROGNAME="`echo $PROGNAME | tr -d ' '`"
+PBI_TARGETFULLDIR="${PBILOCALBASE}"
+PBI_TARGETDIR="${CPROGNAME}"
+PBI_CURDIR="${PBIDIR}"
+PBI_VERSION="${PORTVER}"
+export PBI_CURDIR PBI_TARGETFULLDIR PBI_TARGETDIR PBI_VERSION
 
 # Check if we need to run any build.sh script
 if [ -e "/module/build.sh" ]

Modified: pbibuild/pbibuilder7/scripts/3.makepbi.sh
===================================================================
--- pbibuild/pbibuilder7/scripts/3.makepbi.sh	2009-12-07 16:00:30 UTC (rev 5277)
+++ pbibuild/pbibuilder7/scripts/3.makepbi.sh	2009-12-07 16:11:37 UTC (rev 5278)
@@ -245,6 +245,14 @@
   echo "License: NO" >>/pbi.pbc
 fi
 
+# Set some variables for build.sh to use
+CPROGNAME="`echo $PROGNAME | tr -d ' '`"
+PBI_TARGETFULLDIR="${PBILOCALBASE}"
+PBI_TARGETDIR="${CPROGNAME}"
+PBI_CURDIR="${PBIDIR}"
+PBI_VERSION="${PORTVER}"
+export PBI_CURDIR PBI_TARGETFULLDIR PBI_TARGETDIR PBI_VERSION
+
 # Check if we have a build.sh script to run afterwards
 if [ -e "/module/build.sh" ]
 then



More information about the Commits mailing list