aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-06 22:22:14 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-06 22:22:21 +0100
commit6cb8b68bd08ddb5edff396e293b6776e0e989ded (patch)
tree5dc061496ab7fcd4b0046c0e26ffdf2a6ed95505
parent28c3ae47de7428b4f7019db9158390f8d14ca93d (diff)
support md in TOS
-rw-r--r--contrib/Makefile.am2
-rwxr-xr-xcontrib/update-pp.sh4
-rwxr-xr-xcontrib/update-tos.sh4
-rw-r--r--src/mhd/mhd_legal.c1
4 files changed, 11 insertions, 0 deletions
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" },