# vars feed_title := "dozens weed" feed_desc := "my special little weed in my special little garden" feed_href := "https://tilde.town/~dozens/rsspect/feed.xml" outfile := "feed.xml" # show all available commands default: just --list # update content submodule fetch: git submodule foreach git pull # build feed.xml build: fetch #!/bin/sh echo "Building xml file!!" echo "" > {{outfile}} echo "" >> {{outfile}} echo " " >> {{outfile}} echo " " >> {{outfile}} echo " {{feed_title}}" >> {{outfile}} echo " {{feed_href}}" >> {{outfile}} echo " {{feed_desc}}" >> {{outfile}} fd . 'src/' -e md -x pandoc -f markdown+autolink_bare_uris --template=feed.tmpl >> {{outfile}} echo " " >> {{outfile}} echo " " >> {{outfile}} echo "Done building xml file \o/" # upload feed.xml up: @echo "Uploading to server!!" @rsync -azP feed.xml tilde:public_html/rsspect/ @echo "Done uploading to server \o/" # build and upload all: build up @echo "Roger dodger, it's all done: you have tended your garden 🌱"