[PC-BSD Commits] r3158 - pbibuild/pbibuilder/scripts

svn at pcbsd.org svn at pcbsd.org
Tue Dec 30 08:04:13 PST 2008


Author: kris
Date: 2008-12-30 08:04:12 -0800 (Tue, 30 Dec 2008)
New Revision: 3158

Modified:
   pbibuild/pbibuilder/scripts/2.1.startmake.sh
Log:

Fixed a bug when working with modules that have a Space in the PBI name



Modified: pbibuild/pbibuilder/scripts/2.1.startmake.sh
===================================================================
--- pbibuild/pbibuilder/scripts/2.1.startmake.sh	2008-12-30 15:30:26 UTC (rev 3157)
+++ pbibuild/pbibuilder/scripts/2.1.startmake.sh	2008-12-30 16:04:12 UTC (rev 3158)
@@ -121,9 +121,10 @@
 find_port_ver
 
 # Check if we were given a custom LOCALBASE and use it if so
+CPROGNAME="`echo $PROGNAME | tr -d ' '`"
 if [ -z "${PBILOCALBASE}" ]
 then
-  PBILOCALBASE="/Programs/${PROGNAME}${PORTVER}"
+  PBILOCALBASE="/Programs/${CPROGNAME}${PORTVER}"
 fi
 
 # Save the PBIs make options



More information about the Commits mailing list