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


usage() {
	echo 'Usage: mapentry FILENAME.conf'
}

FILENAME="${1:-}"
eval "$(assert-arg -- "$FILENAME" 'FILENAME.conf')"
. ./"$FILENAME"


cat <<EOF
  <url>
    <loc>$url_absolute</loc>
    <lastmod>$lastmod_iso</lastmod>
  </url>
EOF