scripts: prevent trailing - in CT_TARGET

Not all target tuples consist of an VENDOR, KERNEL and SYSTEM part, build up the
tuple in such a way to no extra or trailing dashes are added to CT_TARGET

Signed-off-by: Bart vdr Meulen <bartvdrmeulen@gmail.com>
This commit is contained in:
Bart vdr Meulen 2010-04-09 21:04:27 +02:00
parent 1ef028c7e6
commit d068fcb19c

View File

@ -860,10 +860,10 @@ CT_DoBuildTargetTuple() {
CT_DoKernelTupleValues CT_DoKernelTupleValues
# Finish the target tuple construction # Finish the target tuple construction
CT_TARGET="${CT_TARGET_ARCH}-" CT_TARGET="${CT_TARGET_ARCH}"
CT_TARGET="${CT_TARGET}${CT_TARGET_VENDOR:+${CT_TARGET_VENDOR}-}" CT_TARGET="${CT_TARGET}${CT_TARGET_VENDOR:+-${CT_TARGET_VENDOR}}"
CT_TARGET="${CT_TARGET}${CT_TARGET_KERNEL:+${CT_TARGET_KERNEL}-}" CT_TARGET="${CT_TARGET}${CT_TARGET_KERNEL:+-${CT_TARGET_KERNEL}}"
CT_TARGET="${CT_TARGET}${CT_TARGET_SYS}" CT_TARGET="${CT_TARGET}${CT_TARGET_SYS:+-${CT_TARGET_SYS}}"
# Sanity checks # Sanity checks
__sed_alias="" __sed_alias=""