mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 08:25:32 +00:00
scripts: fix Host/Target colums in WiKi table
Generate a better-looking WiKi table by re-arranging the host and target columns.
This commit is contained in:
parent
acba361851
commit
7ddb6648e0
@ -70,16 +70,20 @@ dump_single_sample() {
|
||||
printf "\n"
|
||||
fi
|
||||
else
|
||||
printf "| ''${sample}'' "
|
||||
case "${CT_TOOLCHAIN_TYPE}" in
|
||||
cross)
|
||||
printf "| ''${sample}'' | "
|
||||
;;
|
||||
canadian)
|
||||
printf "| ''"
|
||||
printf "${sample}" |sed -r -e 's/.*,//'
|
||||
printf "'' | ${CT_HOST} "
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
printf "| "
|
||||
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X"
|
||||
[ -f "${sample_top}/samples/${sample}/broken" ] && printf "B"
|
||||
printf ' | '
|
||||
case "${CT_TOOLCHAIN_TYPE}" in
|
||||
cross) ;;
|
||||
canadian) printf "${CT_HOST}";;
|
||||
*) ;;
|
||||
esac
|
||||
printf " | ''${CT_KERNEL}'' |"
|
||||
if [ "${CT_KERNEL}" != "bare-metal" ];then
|
||||
if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then
|
||||
@ -132,8 +136,8 @@ done
|
||||
if [ "${opt}" = -w ]; then
|
||||
echo "^ @@DATE@@ |||||||||||||||"
|
||||
printf "^ Target "
|
||||
printf "^ Status "
|
||||
printf "^ Host "
|
||||
printf "^ Status "
|
||||
printf "^ Kernel headers\\\\\\\\ version ^"
|
||||
printf "^ binutils\\\\\\\\ version "
|
||||
printf "^ C compiler\\\\\\\\ version ^"
|
||||
@ -148,10 +152,10 @@ fi
|
||||
|
||||
for sample in "${@}"; do
|
||||
( dump_single_sample ${opt} ${width} "${sample}" )
|
||||
done
|
||||
done |LC_ALL=C sort -k2
|
||||
|
||||
if [ "${opt}" = -w ]; then
|
||||
printf "^ Total: ${#@} samples | ''X'': sample uses features marked as being EXPERIMENTAL.\\\\\\\\ ''B'': sample is curently BROKEN. ||||||||||||||"
|
||||
printf "^ Total: ${#@} samples || ''X'': sample uses features marked as being EXPERIMENTAL.\\\\\\\\ ''B'': sample is curently BROKEN. |||||||||||||"
|
||||
echo ""
|
||||
elif [ -z "${opt}" ]; then
|
||||
echo ' l (local) : sample was found in current directory'
|
||||
|
Loading…
x
Reference in New Issue
Block a user