[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: support md in TOS
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: support md in TOS |
Date: |
Fri, 06 Jan 2023 22:22:24 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 6cb8b68b support md in TOS
6cb8b68b is described below
commit 6cb8b68bd08ddb5edff396e293b6776e0e989ded
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jan 6 22:22:14 2023 +0100
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 cc1cf4d7..99927e7e 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 948f6af3..728216c5 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 67db7c03..dcf9e391 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 c801f84c..25435210 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" },
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: support md in TOS,
gnunet <=