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

svn at pcbsd.org svn at pcbsd.org
Sat Mar 20 07:47:13 PDT 2010


Author: kris
Date: 2010-03-20 07:47:13 -0700 (Sat, 20 Mar 2010)
New Revision: 6426

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

Fixed a few syntax errors in building inmate files



Modified: pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh
===================================================================
--- pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh	2010-03-18 14:40:55 UTC (rev 6425)
+++ pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh	2010-03-20 14:47:13 UTC (rev 6426)
@@ -112,7 +112,7 @@
 pkg_create -j -b \*
 
 # Set some variables for build.sh to use
-CPROGNAME="`echo $PROGNAME | sed 's| ||g'`"
+CPROGNAME=`echo "${PROGNAME}" | sed "s| ||g"`
 PBI_TARGETFULLDIR="${PBILOCALBASE}"
 PBI_TARGETDIR="${CPROGNAME}"
 PBI_CURDIR="${PBIDIR}"
@@ -150,11 +150,11 @@
 
 # Set the File Name variable
 cp ${IDIR}/conf/inmate-name .
-FNAME="`cat ${IDIR}/conf/inmate-name | sed 's| ||g'`"
+FNAME=`cat ${IDIR}/conf/inmate-name | sed "s| ||g"`
 
 # Set our File Version variable
 cp ${IDIR}/conf/inmate-version .
-FVER="`cat ${IDIR}/conf/inmate-version | sed 's| ||g'`"
+FVER=`cat ${IDIR}/conf/inmate-version | sed "s| ||g"`
 
 cp ${IDIR}/conf/inmate-descr .
 echo "`uname -r | cut -d \"-\" -f 1`" > inmate-OS
@@ -168,7 +168,7 @@
 ___INMATE_START___" > .spacer
 
 # Create the lzma of the package
-tar cvf - -C ${IDIR} . 2>/dev/null | /lzma -z -c - >pkg.lzma 2>/dev/null
+tar cvf - -C ${IDIR} . 2>/dev/null | /lzma -z -c - >pkg.lzma
 
 # Make the .wit file now
 cat header.tgz .spacer pkg.lzma > ../${FNAME}${FVER}.wit



More information about the Commits mailing list