r2828 - jhalfs/trunk/CLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Jul 17 10:42:16 PDT 2006


Author: manuel
Date: 2006-07-17 11:42:13 -0600 (Mon, 17 Jul 2006)
New Revision: 2828

Modified:
   jhalfs/trunk/CLFS/master.sh
Log:
Updated the command to set CLFS_HOST

Modified: jhalfs/trunk/CLFS/master.sh
===================================================================
--- jhalfs/trunk/CLFS/master.sh	2006-07-16 20:55:39 UTC (rev 2827)
+++ jhalfs/trunk/CLFS/master.sh	2006-07-17 17:42:13 UTC (rev 2828)
@@ -15,7 +15,7 @@
   echo "${tab_}${GREEN}Processing... ${L_arrow}host prep files${R_arrow}"
 
   # defined here, only for ease of reading
-  CLFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"
+  CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"
 (
 cat << EOF
 023-creatingtoolsdir:




More information about the alfs-log mailing list