c3d2-web/scripts/gen_news.xml.sh

17 lines
195 B
Bash

#!/bin/sh
cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<page title="News">"
<news>
EOF
for item in $* ; do
echo " <newsfile>${item}</newsfile>"
done
cat <<EOF
</news>
</page>
EOF