summaryrefslogtreecommitdiff
path: root/src/sitemap
blob: 48be5ea54995833e64c02af723c9b5fcddb2af27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -euo pipefail


opening() {
	cat <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<urlset
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
EOF
}

closing() {
	echo '</urlset>'
}


opening
cat "$@"
closing