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

svn at pcbsd.org svn at pcbsd.org
Wed Jan 7 06:37:11 PST 2009


Author: kris
Date: 2009-01-07 06:37:11 -0800 (Wed, 07 Jan 2009)
New Revision: 3187

Modified:
   pbibuild/pbibuilder/scripts/3.makepbi.sh
Log:

Updated our makepbi.sh script to fix a bug with copy-files using * and it being expanded improperly causing bad file-copies



Modified: pbibuild/pbibuilder/scripts/3.makepbi.sh
===================================================================
--- pbibuild/pbibuilder/scripts/3.makepbi.sh	2009-01-06 20:56:17 UTC (rev 3186)
+++ pbibuild/pbibuilder/scripts/3.makepbi.sh	2009-01-07 14:37:11 UTC (rev 3187)
@@ -98,10 +98,12 @@
 # Copy over the files listed in the copy-files config 
 while read line
 do
- echo ${line} | cut -d " " -f 2 | grep / >/dev/null 2>/dev/null
+ echo "REM:${line}" | cut -d " " -f 2 | grep /  
  if [ "$?" = "0" ]
  then
-   DIR="`echo ${line} | cut -d \" \" -f 2`"
+   #echo "line: $line"
+   DIR="`echo REM:$line | cut -d \" \" -f 2`"
+   #echo "DIR: ${DIR}"
    j=1
    while
     z=1
@@ -123,8 +125,8 @@
  fi
 
  cp -R ${line} 
- echo "Copying $line"
-done < "/module/copy-files"
+ echo "cp -R $line"
+done <"/module/copy-files"
 
 fi
 



More information about the Commits mailing list