mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-07 11:20:14 +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"
|
printf "\n"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "| ''${sample}'' "
|
case "${CT_TOOLCHAIN_TYPE}" in
|
||||||
|
cross)
|
||||||
|
printf "| ''${sample}'' | "
|
||||||
|
;;
|
||||||
|
canadian)
|
||||||
|
printf "| ''"
|
||||||
|
printf "${sample}" |sed -r -e 's/.*,//'
|
||||||
|
printf "'' | ${CT_HOST} "
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
printf "| "
|
printf "| "
|
||||||
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X"
|
[ "${CT_EXPERIMENTAL}" = "y" ] && printf "X"
|
||||||
[ -f "${sample_top}/samples/${sample}/broken" ] && printf "B"
|
[ -f "${sample_top}/samples/${sample}/broken" ] && printf "B"
|
||||||
printf ' | '
|
|
||||||
case "${CT_TOOLCHAIN_TYPE}" in
|
|
||||||
cross) ;;
|
|
||||||
canadian) printf "${CT_HOST}";;
|
|
||||||
*) ;;
|
|
||||||
esac
|
|
||||||
printf " | ''${CT_KERNEL}'' |"
|
printf " | ''${CT_KERNEL}'' |"
|
||||||
if [ "${CT_KERNEL}" != "bare-metal" ];then
|
if [ "${CT_KERNEL}" != "bare-metal" ];then
|
||||||
if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then
|
if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" = "y" ]; then
|
||||||
@ -131,9 +135,9 @@ done
|
|||||||
|
|
||||||
if [ "${opt}" = -w ]; then
|
if [ "${opt}" = -w ]; then
|
||||||
echo "^ @@DATE@@ |||||||||||||||"
|
echo "^ @@DATE@@ |||||||||||||||"
|
||||||
printf "^ Target "
|
printf "^ Target "
|
||||||
|
printf "^ Host "
|
||||||
printf "^ Status "
|
printf "^ Status "
|
||||||
printf "^ Host "
|
|
||||||
printf "^ Kernel headers\\\\\\\\ version ^"
|
printf "^ Kernel headers\\\\\\\\ version ^"
|
||||||
printf "^ binutils\\\\\\\\ version "
|
printf "^ binutils\\\\\\\\ version "
|
||||||
printf "^ C compiler\\\\\\\\ version ^"
|
printf "^ C compiler\\\\\\\\ version ^"
|
||||||
@ -148,10 +152,10 @@ fi
|
|||||||
|
|
||||||
for sample in "${@}"; do
|
for sample in "${@}"; do
|
||||||
( dump_single_sample ${opt} ${width} "${sample}" )
|
( dump_single_sample ${opt} ${width} "${sample}" )
|
||||||
done
|
done |LC_ALL=C sort -k2
|
||||||
|
|
||||||
if [ "${opt}" = -w ]; then
|
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 ""
|
echo ""
|
||||||
elif [ -z "${opt}" ]; then
|
elif [ -z "${opt}" ]; then
|
||||||
echo ' l (local) : sample was found in current directory'
|
echo ' l (local) : sample was found in current directory'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user