2022-07-13 12:07:49 -04:00
|
|
|
submit_url = gemini://warmedal.se/~antenna/submit?gemini%3A%2F%2Fgemini.hitchhiker-linux.org%2Fgemlog%2Fatom.xml
|
|
|
|
|
2022-06-07 17:28:06 -04:00
|
|
|
all: build capsule.tar upload
|
|
|
|
|
|
|
|
build:
|
|
|
|
zond build
|
|
|
|
|
2022-07-10 08:41:34 -04:00
|
|
|
capsule.tar: public/index.gmi
|
2022-06-16 23:07:56 -04:00
|
|
|
cd public && tar cf ../capsule.tar *
|
2022-06-07 17:28:06 -04:00
|
|
|
|
|
|
|
upload: capsule.tar
|
|
|
|
scp capsule.tar gimli:/home/nathan/capsule.tar
|
2022-06-16 23:07:56 -04:00
|
|
|
ssh gimli tar xf capsule.tar -C /srv/gemini
|
2022-06-07 17:28:06 -04:00
|
|
|
|
2022-07-13 12:07:49 -04:00
|
|
|
publish:
|
|
|
|
echo "$(submit_url)" | eval openssl s_client -connect warmedal.se:1965 -crlf \
|
|
|
|
-ign_eof -quiet
|
|
|
|
|
2022-06-16 23:07:56 -04:00
|
|
|
clean:
|
|
|
|
rm -rf capsule.tar public
|
|
|
|
|
2022-07-13 12:07:49 -04:00
|
|
|
.PHONY: all build clean upload publish
|