diff --git a/justfile b/justfile index fabc149..eebfe6c 100644 --- a/justfile +++ b/justfile @@ -65,3 +65,17 @@ upload: # build and rss all: markdown gemini index upload rss + +# new script +new: + #!/usr/bin/env sh + count=$(recsel -c db/database.rec) + read -p "first line: " top + read -p "second line: " bottom + printf -v id "%05d" $((++count)) + recins --verbose -t comic \ + -f "top" -v "$top" \ + -f "bottom" -v "$bottom" \ + -f "id" -v "$id" \ + -f "date" -v "$(date -I)" \ + db/database.rec