aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" },