diff options
Diffstat (limited to 'large.sh')
| -rwxr-xr-x | large.sh | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -121,15 +121,33 @@ large_colon() { ' ' } +large_minus() { + printf '%s\n' \ + ' ' \ + ' ' \ + ' ' \ + '[XXXXXX] ' \ + ' ' \ + ' ' \ + ' ' +} + printf '#define LARGE_Y %i\n' $(large_0 | wc -l) -printf '#define LARGE_XD %i\n' $(large_0 | head -n 1 | tr -d '\n' | wc -c) +printf '#define LARGE_X %i\n' $(large_0 | head -n 1 | tr -d '\n' | wc -c) printf '#define LARGE_XC %i\n' $(large_colon | head -n 1 | tr -d '\n' | wc -c) +printf '#define LARGE_XM %i\n' $(large_minus | head -n 1 | tr -d '\n' | wc -c) printf '#define SMALL_Y %i\n' $(expr \( $(large_0 | wc -l) + 1 \) / 2) -printf '#define SMALL_XD %i\n' $(expr \( $(large_0 | head -n 1 | tr -d '\n' | wc -c) + 1 \) / 2) +printf '#define SMALL_X %i\n' $(expr \( $(large_0 | head -n 1 | tr -d '\n' | wc -c) + 1 \) / 2) printf '#define SMALL_XC %i\n' $(expr \( $(large_colon | head -n 1 | tr -d '\n' | wc -c) + 1 \) / 2) +printf '#define SMALL_XM %i\n' $(expr \( $(large_minus | head -n 1 | tr -d '\n' | wc -c) + 1 \) / 2) -for c in 0 1 2 3 4 5 6 7 8 9 colon; do +for c in 0 1 2 3 4 5 6 7 8 9 colon minus; do + if test $c = colon; then + printf '%s\n' '#ifdef INCLUDE_LARGE_COLON' + elif test $c = minus; then + printf '%s\n' '#ifdef INCLUDE_LARGE_MINUS' + fi printf 'static const char *large_%s[] = {\n' $c large_$c | \ sed -e 's/X/ /g' -e 's/\[/\\033\[7m /g' -e 's/\]/ \\033\[m/g' | \ @@ -191,4 +209,7 @@ for c in 0 1 2 3 4 5 6 7 8 9 colon; do printf '\n' done | sed -e 's/^/"/' -e 's/$/",/' | sed '$s/,$//' printf '};\n' + if test $c = colon || test $c = minus; then + printf '%s\n' '#endif' + fi done |
