Commit Briefs
add DISTNAME variable
like the one from bsd.port.mk, here it's used to decide the name of the tarball.
amused-monitor: fix rounding
round() rouds towards infinity, but for the line counting i need a round towards zero, the one provided by int()
amused-monitor: fix bug when window is taller than playlist
adjust the index before reordering the entries, otherwise we may try to read out-of-bound because the reading loop wraps at $lines, not at $tmp size.
add consume mode
the consume mode implicitly drops the tracks from the playlist when played 'till the end (note that skipping over a track doesn't trigger the consume mode - yet?)
drop restart from the list of 'status-like' commands
now it's an alias for 'seek 0', so it doesn't return the status.
pledge early
This changed amused to pledge "stdio rpath" early in main() and then drop down to "stdio" in ctlaction, by removing the pledge call in parse. Simplifies a bit the logic and runs more code under pledge.
include unistd.h for close
spotted on aarch64/glibc