Ticket #57 (closed task: fixed)
setting CLFS_HOST
| Reported by: | jciccone | Owned by: | clfs-commits@… |
|---|---|---|---|
| Priority: | critical | Milestone: | CLFS Standard 1.0.0 |
| Component: | BOOK | Version: | CLFS Standard 1.0.0 |
| Keywords: | Cc: |
Description
Currently the book uses:
export CLFS_HOST="$(echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g')"
I think we should be using this instead:
export CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"
Advantages of the proposed command, It will replace the 2nd field where the delimeter is - with cross.
Change History
Note: See
TracTickets for help on using
tickets.
