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

svn at pcbsd.org svn at pcbsd.org
Fri May 15 12:04:08 PDT 2009


Author: kris
Date: 2009-05-15 12:04:08 -0700 (Fri, 15 May 2009)
New Revision: 3952

Modified:
   pbibuild/pbibuilder/scripts/2.makeport.sh
Log:

Update the PBI builder, supports categories for modules now



Modified: pbibuild/pbibuilder/scripts/2.makeport.sh
===================================================================
--- pbibuild/pbibuilder/scripts/2.makeport.sh	2009-05-15 18:50:36 UTC (rev 3951)
+++ pbibuild/pbibuilder/scripts/2.makeport.sh	2009-05-15 19:04:08 UTC (rev 3952)
@@ -1,7 +1,7 @@
-#!/bin/bash
+#!/bin/sh
 
 # Check if we have sourced the variables yet
-if [ "${PROGDIR}" == "" ]
+if [ "${PROGDIR}" = "" ]
 then
   . /pbi-build/conf/pbibuild.conf
 fi
@@ -24,7 +24,7 @@
   echo "Copying modules directory..."
   rm -rf ${PROGDIR}/modules
   mkdir ${PROGDIR}/modules
-  tar cvf - -C /pcbsd-build/svn/pbibuild/modules --exclude .svn . 2>/dev/null | tar xvpf - -C ${PROGDIR}/modules 2>/dev/null
+  tar cvf - -C /pbi-build/svn/ --exclude .svn . 2>/dev/null | tar xvpf - -C ${PROGDIR}/modules 2>/dev/null
 
 fi
   
@@ -46,7 +46,7 @@
 
 # Start the loop looking for PBI's to create
 cd ${PROGDIR}/modules
-for module in `ls`
+for module in `find . | grep -v "/.svn" | grep pbi.conf | sed -e "s|pbi.conf||g" | sed -e "s|\./||g`
 do
 
 BUILD="0"



More information about the Commits mailing list