diff options
author | Marvin Borner | 2020-07-25 14:19:48 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-25 14:19:48 +0200 |
commit | ba7ed9c4b1137ad76e60a117e061bd3da1be1f61 (patch) | |
tree | 0fa5ca8d52822165c895e733b7915b8327d59ac8 | |
parent | 16c5b566d04e6cbf63f871bd569d4636a9e90d62 (diff) |
Added psfu font downloader
-rwxr-xr-x | run | 23 |
1 files changed, 16 insertions, 7 deletions
@@ -63,14 +63,23 @@ make_cross() { } make_disk() { - rm -rf disk && mkdir -p disk/ - cd disk/ - - wget "https://raw.githubusercontent.com/fcambus/spleen/master/spleen-12x24.bdf" -O font24.bdf + rm -rf disk && mkdir -p disk/font/ + + cd disk/font/ + VERSION="1.8.1" + wget -q "https://github.com/fcambus/spleen/releases/download/$VERSION/spleen-$VERSION.tar.gz" + tar xf "spleen-$VERSION.tar.gz" + mv spleen-"$VERSION"/*.psfu . + rm -rf "spleen-$VERSION"* + cd ../../ } make_build() { - mkdir -p build/ disk/ + if ! [ -d "disk/" ]; then + make_disk + fi + + mkdir -p build/ rm -rf build/* echo "Building..." @@ -88,8 +97,8 @@ make_build() { mkdir -p mnt/ sudo mount build/disk.img mnt/ - sudo cp disk/* mnt/ - cat disk/* >/dev/null + sudo cp -r disk/* mnt/ + cat disk/**/* >/dev/null sudo umount mnt/ rm -rf mnt/ |