diff options
author | Marvin Borner | 2019-11-30 13:25:52 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-30 13:25:52 +0100 |
commit | 348995b3fb8e1ce4a01eeb1f2189e664e833b69d (patch) | |
tree | 100e4c3d586e1af9674f4829a533bcf2f34ea40b /src/kernel | |
parent | 728d764f314b98adec26d8e674b7235db6c4ad63 (diff) |
Renamed assets directory
Diffstat (limited to 'src/kernel')
-rwxr-xr-x | src/kernel/graphics/conv.sh | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/kernel/graphics/conv.sh b/src/kernel/graphics/conv.sh deleted file mode 100755 index ff922dd..0000000 --- a/src/kernel/graphics/conv.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# bdf2c output formatter - -font_url="https://raw.githubusercontent.com/fcambus/spleen/master/spleen-8x16.bdf" -character_count=758 -font_height=16 -top_lines="#include <stdint.h>\n\nuint16_t font_bitmap[$character_count][$font_height] = {" - -rm -rf font -mkdir font -cd font || exit -wget $font_url -O temp.bdf -bdf2c -C font.h -bdf2c -b < temp.bdf > temp.c -gcc -E -CC temp.c > final.h - -sed -i -e 1,74d final.h -sed -i -e :a -e '$d;N;2,1533ba' -e 'P;D' final.h - -sed -i "1s/.*/$top_lines/" final.h -sed -i 's/\,0x//g' final.h -sed -i -z "s/$font_height\n /$font_height\n \{/g" final.h -sed -i -z 's/\,\n\/\//\}\,\n\/\//g' final.h -sed -i 's/\/\/ [0-9]/ \/\/ /g' final.h -sed -i 's/\/\/\t/ \/\/ /g' final.h -sed -i 's/\/\/ / \/\/ /g' final.h -sed -i -z 's/\,\n 0x/\, 0x/g' final.h - -rm font.h -rm temp.*
\ No newline at end of file |