Added deployment task.

This commit is contained in:
Emilis Dambauskas 2020-11-24 00:50:16 +02:00
parent f341436d35
commit 179b9b61eb
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,11 @@ default: get-feeds build
.PHONY: build
build: index.gmi
.PHONY:deploy
deploy:
printf 'cd emilis\nput index.gmi\n' \
| sftp -b - gemini.circumlunar.space
.PHONY: get-feeds
get-feeds:
@ -47,6 +52,7 @@ index.gmi: \
}' sorted.gmi \
| tee -a "$@"
cat footer.gmi >> "$@"
date +'Updated: %FT%T%:z' >> "$@"
sorted.gmi: downloaded.gmi