mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
20 lines
398 B
Bash
Executable File
20 lines
398 B
Bash
Executable File
#!/bin/sh
|
|
|
|
directory="$(mktemp -d)"
|
|
trap clean EXIT
|
|
clean() {
|
|
rm -rf "$directory"
|
|
}
|
|
|
|
year=$(date +%Y)
|
|
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 -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"
|