support md in TOS

This commit is contained in:
Christian Grothoff 2023-01-06 22:22:14 +01:00
parent 28c3ae47de
commit 6cb8b68bd0
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
4 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,7 @@ rdatadir=$(datadir)/taler/exchange
tosen_DATA = \ tosen_DATA = \
tos/en/*.txt \ tos/en/*.txt \
tos/en/*.md \
tos/en/*.pdf \ tos/en/*.pdf \
tos/en/*.epub \ tos/en/*.epub \
tos/en/*.xml \ tos/en/*.xml \
@ -33,6 +34,7 @@ tosen_DATA = \
ppen_DATA = \ ppen_DATA = \
pp/en/*.txt \ pp/en/*.txt \
pp/en/*.md \
pp/en/*.pdf \ pp/en/*.pdf \
pp/en/*.epub \ pp/en/*.epub \
pp/en/*.xml \ pp/en/*.xml \

View File

@ -29,6 +29,10 @@ do
else else
mv _build/$f/${VERSION}.$f $l/${VERSION}.$f mv _build/$f/${VERSION}.$f $l/${VERSION}.$f
fi fi
if test $f = "txt"
then
cp $l/${VERSION}.$f $l/${VERSION}.md
fi
done done
done done
cd .. cd ..

View File

@ -29,6 +29,10 @@ do
else else
mv _build/$f/${VERSION}.$f $l/${VERSION}.$f mv _build/$f/${VERSION}.$f $l/${VERSION}.$f
fi fi
if test $f = "txt"
then
cp $l/${VERSION}.$f $l/${VERSION}.md
fi
done done
done done
cd .. cd ..

View File

@ -388,6 +388,7 @@ load_terms (struct TALER_MHD_Legal *legal,
{ .ext = ".html", .mime = "text/html", .priority = 100 }, { .ext = ".html", .mime = "text/html", .priority = 100 },
{ .ext = ".htm", .mime = "text/html", .priority = 99 }, { .ext = ".htm", .mime = "text/html", .priority = 99 },
{ .ext = ".txt", .mime = "text/plain", .priority = 50 }, { .ext = ".txt", .mime = "text/plain", .priority = 50 },
{ .ext = ".md", .mime = "text/markdown", .priority = 50 },
{ .ext = ".pdf", .mime = "application/pdf", .priority = 25 }, { .ext = ".pdf", .mime = "application/pdf", .priority = 25 },
{ .ext = ".jpg", .mime = "image/jpeg" }, { .ext = ".jpg", .mime = "image/jpeg" },
{ .ext = ".jpeg", .mime = "image/jpeg" }, { .ext = ".jpeg", .mime = "image/jpeg" },