summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-12-02 02:30:30 +0100
committerDave Reisner <dreisner@archlinux.org>2012-12-02 02:30:30 +0100
commit71b5da696cc59e22339b5db497032821e631a54f (patch)
tree8aa7f77fec62c9187c45309a23219a2892026fee
parent62ddaa6ea0a029afebeb746192dc9119f97431da (diff)
downloadmkinitcpio-71b5da696cc59e22339b5db497032821e631a54f.tar.gz
mkinitcpio-71b5da696cc59e22339b5db497032821e631a54f.tar.xz
mkinitcpio: use fancy unicode in -L output0.12.0
Denote deprecation with unicode superscript footnote markers. Yes, this inherently limits us to 9 deprecation notices in its current form, but there really shouldn't ever be so many deprecated items at once. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio6
1 files changed, 4 insertions, 2 deletions
diff --git a/mkinitcpio b/mkinitcpio
index e7b19c1..013bc46 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -138,6 +138,7 @@ hook_help() {
hook_list() {
local n p hook resolved
local -a paths hooklist depr
+ local ss_ordinals=(¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹)
IFS=: read -ra paths <<<"$_d_install"
@@ -165,7 +166,7 @@ hook_list() {
n=$(( ${#depr[*]} - 1 ))
fi
- hook=$hook[$n]
+ hook=$hook${ss_ordinals[n]}
fi
hooklist+=("${hook##*/}")
@@ -178,7 +179,8 @@ hook_list() {
if (( ${#depr[*]} )); then
echo
for p in "${!depr[@]}"; do
- printf "[%s]: This hook is deprecated in favor of '%s'\n" "$p" "${depr[p]}"
+ printf "%s This hook is deprecated in favor of '%s'\n" \
+ "${ss_ordinals[p]}" "${depr[p]}"
done
fi
}