add update-src script

This commit is contained in:
Daylin Morgan 2021-12-22 16:34:04 -06:00
parent 7992363a7d
commit b8d48f7987
2 changed files with 17 additions and 0 deletions

2
.gitignore vendored
View file

@ -4,3 +4,5 @@ MonoLisa/*
patched/* patched/*
!**/.gitkeep !**/.gitkeep
nerd-fonts

15
update-src Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
REPO_URL=git@github.com:ryanoasis/nerd-fonts.git
rm -f nerd-fonts
git clone --filter=blob:none --no-checkout --depth 1 --sparse $REPO_URL
cd nerd-fonts
git sparse-checkout add src/glyphs
git checkout
cp font-patcher ../font-patcher
cp src/glyphs/** ../src/glyphs -r
echo "don't forget to commit your changes!"