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

svn at pcbsd.org svn at pcbsd.org
Thu Mar 18 07:40:55 PDT 2010


Author: kris
Date: 2010-03-18 07:40:55 -0700 (Thu, 18 Mar 2010)
New Revision: 6425

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

Switch from "tr" to "sed" to avoid some usage errors



Modified: pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh
===================================================================
--- pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh	2010-03-18 14:39:10 UTC (rev 6424)
+++ pbibuild/pbibuilder8/scripts/3.1.makeinmate.sh	2010-03-18 14:40:55 UTC (rev 6425)
@@ -112,7 +112,7 @@
 pkg_create -j -b \*
 
 # Set some variables for build.sh to use
-CPROGNAME="`echo $PROGNAME | tr -d ' '`"
+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 | tr -d ' '`"
+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 | tr -d ' '`"
+FVER="`cat ${IDIR}/conf/inmate-version | sed 's| ||g'`"
 
 cp ${IDIR}/conf/inmate-descr .
 echo "`uname -r | cut -d \"-\" -f 1`" > inmate-OS



More information about the Commits mailing list