aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-07-14 23:09:21 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-07-14 23:20:32 +0100
commit6a318b7833adf2777c7041017c37e6e480b3619e (patch)
treee20f565385cd2a9f2546dcdac6f9300481c4725f /Makefile
parentd49a7581500af58f929d808d3e052aa1cd526d21 (diff)
downloadgpigeon-6a318b7833adf2777c7041017c37e6e480b3619e.tar.gz
gpigeon-6a318b7833adf2777c7041017c37e6e480b3619e.zip
added crude file upload possibilities
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 000e898..4900467 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ gpigeon: gpigeon-template.cgi link-tmpl-template.cgi
exit 1; \
fi
@if test -n '$(_GPGID)'; then \
- printf "Your GPG 0xlong id is ${BOLD}$(_GPGID)${STOP}\n";\
+ printf "Your GPG 0xlong id is ${BOLD}0x$(_GPGID)${STOP}\n";\
sed -e 's|gpgid_goes_here|0x$(_GPGID)|g' -i link-tmpl.cgi;\
else \
printf "${RED}It seems that no public GPG key is tied to ${BOLD}$(MYMAIL_ADDR)${STOP}\n";\
@@ -71,6 +71,13 @@ gpigeon: gpigeon-template.cgi link-tmpl-template.cgi
printf "\n${RED}The path for the link template wasn't set in your config.mk. Fix that.${STOP}" ;\
exit 1;\
fi
+ @if test -n '$(UPLOAD_TMPDIR)'; then \
+ printf "\nUploaded files will be temporary stored at ${BOLD}$(UPLOAD_TMPDIR)${STOP}"; \
+ sed -e 's|tmp_dir_goes_here|$(UPLOAD_TMPDIR)|g' -i gpigeon.cgi; \
+ else \
+ printf "\n${RED}The temporary directory for uploaded files wasn't set in your config.mk. Fix that.${STOP}" ;\
+ exit 1;\
+ fi
@if test -n '$(ARGON2ID_HASH)'; then\
printf "\nThe argon2id hash is ${BOLD}${ARGON2ID_HASH}${STOP}\n"; \