[PC-BSD Commits] r5277 - pbibuild/pbibuilder8/scripts

svn at pcbsd.org svn at pcbsd.org
Mon Dec 7 08:00:30 PST 2009


Author: kris
Date: 2009-12-07 08:00:30 -0800 (Mon, 07 Dec 2009)
New Revision: 5277

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

Updated our PBI builder scripts, to provide additional variables we can safely use in build.sh scripts



Modified: pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh
===================================================================
--- pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh	2009-12-07 14:13:24 UTC (rev 5276)
+++ pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh	2009-12-07 16:00:30 UTC (rev 5277)
@@ -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/pbibuilder8/scripts/3.makepbi.sh
===================================================================
--- pbibuild/pbibuilder8/scripts/3.makepbi.sh	2009-12-07 14:13:24 UTC (rev 5276)
+++ pbibuild/pbibuilder8/scripts/3.makepbi.sh	2009-12-07 16:00:30 UTC (rev 5277)
@@ -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