diff options
author | mamg22 <45301823+mamg22@users.noreply.github.com> | 2021-11-13 13:43:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-13 17:43:15 +0000 |
commit | 8f6ba7b8689173889fc0229422f5f3bfaeea0923 (patch) | |
tree | 5afacb52db81e230e2280dff3269bc7350ba5110 /icon/dat2h.awk | |
parent | a841d1c8de09ed745f6085f9e961bed7b7478461 (diff) |
Embed new nsxiv icon (#163)
Co-authored-by: Berke Kocaoğlu <berke.kocaoglu@metu.edu.tr>
Co-authored-by: NRK <nrk@disroot.org>
Diffstat (limited to 'icon/dat2h.awk')
-rw-r--r-- | icon/dat2h.awk | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/icon/dat2h.awk b/icon/dat2h.awk deleted file mode 100644 index cd6f362..0000000 --- a/icon/dat2h.awk +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/awk -f - -function printchars() { - while (n > 0) { - x = n / 16 >= 1 ? 16 : n; - printf("0x%x%x,%s", x - 1, ref[c] - 1, ++i % 12 == 0 ? "\n" : " "); - n -= x; - } -} - -/^$/ { - printchars(); - printf("\n\n"); - c = ""; - i = 0; -} - -/./ { - if (!ref[$0]) { - col[cnt++] = $0; - ref[$0] = cnt; - } - if ($0 != c) { - if (c != "") - printchars(); - c = $0; - n = 0; - } - n++; -} - -END { - for (i = 0; i < cnt; i++) - printf("%s,%s", col[i], ++j % 4 == 0 || i + 1 == cnt ? "\n" : " "); -} |