From 32fb0f300c12f0fe8c42c6e91a1389876e0545e3 Mon Sep 17 00:00:00 2001 From: Amolith Date: Tue, 26 Dec 2023 16:29:36 -0500 Subject: [PATCH] Update readme and add builds --- Justfile | 27 +++++++++++++++++++++++++++ README.org | 6 +++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 Justfile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..175b52c --- /dev/null +++ b/Justfile @@ -0,0 +1,27 @@ +datetime := `date +%Y-%m-%d_%H%M%S_%Z` +tmp := `mktemp -d` + +default: guitar piano + +guitar: dirs + fd '.cho' -t f -x chordpro -o ~/Documents/Music/{.}.pdf {} + +piano: dirs + fd '.ly' -t f -x lilypond -o ~/Documents/Music/{.} {} + +dirs: + fd . -t d -x mkdir -p ~/Documents/Music/{} + +release: default + tar -C ~/Documents/Music -cf {{tmp}}/music.tar Guitar + tar -C ~/Documents/Music -rf {{tmp}}/music.tar Piano + gzip {{tmp}}/music.tar + ssh-keygen -Y sign -f ~/.ssh/yk-stationary -n file {{tmp}}/music.tar.gz + cd {{tmp}} && sha256sum music.tar.gz > music.tar.gz.sha256 && cd - + cd ~/Documents/Music && zip -r {{tmp}}/music.zip Guitar Piano && cd - + ssh-keygen -Y sign -f ~/.ssh/yk-stationary -n file {{tmp}}/music.zip + cd {{tmp}} && sha256sum music.zip > music.zip.sha256 && cd - + git tag -s -m {{datetime}} {{datetime}} + git push --tags + tea r create -a {{tmp}}/music.tar.gz -a {{tmp}}/music.tar.gz.sig -a {{tmp}}/music.tar.gz.sha256 -a {{tmp}}/music.zip -a {{tmp}}/music.zip.sig -a {{tmp}}/music.zip.sha256 --tag {{datetime}} -t {{datetime}} + rm -rf {{tmp}} diff --git a/README.org b/README.org index 1656996..92ea672 100644 --- a/README.org +++ b/README.org @@ -1,8 +1,8 @@ * Music -This is just a repository of music I've transcribed and arranged (maybe -even written 👀) over the years. PDFs are not included so you'll have -to read on if you want to use any of the files here +This is just a repository of music I've transcribed and arranged (maybe even +written 👀) over the years. Download archives containing PDFs of everything from +the [[https://git.nixnet.services/Amolith/music/releases][releases]] page. * ~.cho~ These are [[https://www.chordpro.org/][ChordPro]] files and must be "compiled" with the ~chordpro~