[PC-BSD Commits] r7881 - pcbsd/current/src-sh/pbi-manager/module-examples

svn at pcbsd.org svn at pcbsd.org
Fri Oct 22 10:50:03 PDT 2010


Author: kris
Date: 2010-10-22 10:50:03 -0700 (Fri, 22 Oct 2010)
New Revision: 7881

Modified:
   pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh
Log:

Improve convertoldmod.sh, dont use /usr/ports in PBI_MAKEPORT



Modified: pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh
===================================================================
--- pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh	2010-10-22 17:34:30 UTC (rev 7880)
+++ pcbsd/current/src-sh/pbi-manager/module-examples/convertoldmod.sh	2010-10-22 17:50:03 UTC (rev 7881)
@@ -127,8 +127,10 @@
   expts="${expts} PBI_PROGICON"  
 fi
 if [ ! -z "${PBIPORT}" ] ; then
+  # Fixed PBIPORT
+  fPort=`echo $PBIPORT | sed 's|/usr/ports/||g'`
   echo "# The target port we are building
-PBI_MAKEPORT=\"${PBIPORT}\"" >>${ndir}/pbi.conf
+PBI_MAKEPORT=\"${fPort}\"" >>${ndir}/pbi.conf
   echo " " >>${ndir}/pbi.conf
   expts="${expts} PBI_MAKEPORT"  
 fi



More information about the Commits mailing list