From 6cb8b68bd08ddb5edff396e293b6776e0e989ded Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 6 Jan 2023 22:22:14 +0100 Subject: [PATCH] support md in TOS --- contrib/Makefile.am | 2 ++ contrib/update-pp.sh | 4 ++++ contrib/update-tos.sh | 4 ++++ src/mhd/mhd_legal.c | 1 + 4 files changed, 11 insertions(+) diff --git a/contrib/Makefile.am b/contrib/Makefile.am index cc1cf4d7f..99927e7e6 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -26,6 +26,7 @@ rdatadir=$(datadir)/taler/exchange tosen_DATA = \ tos/en/*.txt \ + tos/en/*.md \ tos/en/*.pdf \ tos/en/*.epub \ tos/en/*.xml \ @@ -33,6 +34,7 @@ tosen_DATA = \ ppen_DATA = \ pp/en/*.txt \ + pp/en/*.md \ pp/en/*.pdf \ pp/en/*.epub \ pp/en/*.xml \ diff --git a/contrib/update-pp.sh b/contrib/update-pp.sh index 948f6af35..728216c58 100755 --- a/contrib/update-pp.sh +++ b/contrib/update-pp.sh @@ -29,6 +29,10 @@ do else mv _build/$f/${VERSION}.$f $l/${VERSION}.$f fi + if test $f = "txt" + then + cp $l/${VERSION}.$f $l/${VERSION}.md + fi done done cd .. diff --git a/contrib/update-tos.sh b/contrib/update-tos.sh index 67db7c031..dcf9e3919 100755 --- a/contrib/update-tos.sh +++ b/contrib/update-tos.sh @@ -29,6 +29,10 @@ do else mv _build/$f/${VERSION}.$f $l/${VERSION}.$f fi + if test $f = "txt" + then + cp $l/${VERSION}.$f $l/${VERSION}.md + fi done done cd .. diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index c801f84cd..25435210e 100644 --- a/src/mhd/mhd_legal.c +++ b/src/mhd/mhd_legal.c @@ -388,6 +388,7 @@ load_terms (struct TALER_MHD_Legal *legal, { .ext = ".html", .mime = "text/html", .priority = 100 }, { .ext = ".htm", .mime = "text/html", .priority = 99 }, { .ext = ".txt", .mime = "text/plain", .priority = 50 }, + { .ext = ".md", .mime = "text/markdown", .priority = 50 }, { .ext = ".pdf", .mime = "application/pdf", .priority = 25 }, { .ext = ".jpg", .mime = "image/jpeg" }, { .ext = ".jpeg", .mime = "image/jpeg" },