Add publish target to Makefile for submitting to Antenna
This commit is contained in:
parent
1ce852d21a
commit
9016542ea3
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
submit_url = gemini://warmedal.se/~antenna/submit?gemini%3A%2F%2Fgemini.hitchhiker-linux.org%2Fgemlog%2Fatom.xml
|
||||||
|
|
||||||
all: build capsule.tar upload
|
all: build capsule.tar upload
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -10,7 +12,11 @@ upload: capsule.tar
|
||||||
scp capsule.tar gimli:/home/nathan/capsule.tar
|
scp capsule.tar gimli:/home/nathan/capsule.tar
|
||||||
ssh gimli tar xf capsule.tar -C /srv/gemini
|
ssh gimli tar xf capsule.tar -C /srv/gemini
|
||||||
|
|
||||||
|
publish:
|
||||||
|
echo "$(submit_url)" | eval openssl s_client -connect warmedal.se:1965 -crlf \
|
||||||
|
-ign_eof -quiet
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf capsule.tar public
|
rm -rf capsule.tar public
|
||||||
|
|
||||||
.PHONY: all build clean upload
|
.PHONY: all build clean upload publish
|
||||||
|
|
Loading…
Add table
Reference in a new issue