11 lines
287 B
Bash
Executable File
11 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo -en "#import \"/src/song.typ\": * \n" >build/songs.typ
|
|
|
|
for t in src/songs/*.typ; do
|
|
base="$(basename $t .typ)"
|
|
title="$(grep -oP '^\W*title\W*=\W*"\K.*(?="\W*$$)' src/songs/$base.ly)"
|
|
|
|
echo -en "#song(\"$title\", \"$base\")\n#pagebreak()\n" >>build/songs.typ
|
|
done
|