Use standard output instead of hardcoding output file

This commit is contained in:
Clément Fournier
2018-05-18 02:10:41 +02:00
parent 3687f9308e
commit cc9bd77560
2 changed files with 5 additions and 5 deletions

View File

@@ -12,9 +12,9 @@ DATE=`date +%Y-%m-%d`
LATEST_PRIORITY=0.8
# Start of the output writing
# Writes to standard output
cat << HEADER_END > sitemap.xml
cat << HEADER_END
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@@ -40,7 +40,7 @@ HEADER_END
for page in ${DOC_PREFIX}pmd_*.html
do
cat << ENTRY_END >> sitemap.xml
cat << ENTRY_END
<url>
<loc>${WEBSITE_PREFIX}$page</loc>
<priority>$LATEST_PRIORITY</priority>
@@ -52,5 +52,5 @@ ENTRY_END
done
echo "</urlset>" >> sitemap.xml
echo "</urlset>"