diff --git a/.bin/calendars.sh b/.bin/calendars.sh new file mode 100755 index 0000000..d92a3af --- /dev/null +++ b/.bin/calendars.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +directory="$(mktemp -d)" +trap clean EXIT +clean() { + rm -rf "$directory" +} + +year=2022 +output=/tmp/$year.pdf + +for month in $(seq 1 12); do + printf "\r%d" "$month" 1>&2 + astrolog -zN Berlin -qm "$month" "$year" -X -K -XA -R Uranus Neptune Pluto -Xr -Xm -Xb -Xo "$(printf "%s/%02d.bmp" "$directory" "$month")" -Xw 1080 720 2>/dev/null +done +printf "\r" + +convert "$directory/*.bmp" "$output" +echo "$output"