#!/bin/sh set -e DISTRIBUTIONS="engywuck engywuck-backports" for DISTRIBUTION in ${DISTRIBUTIONS} do OUTPUT="/srv/git/progress-linux.org/packages/${DISTRIBUTION}.html" if [ ! -e "$(dirname ${OUTPUT})" ] then echo "$(dirname ${OUTPUT}) - no such directory" exit 1 fi cat > "${OUTPUT}" << EOF

${DISTRIBUTION}

EOF PACKAGES="$(wget -q https://git.progress-linux.org/packages/${DISTRIBUTION}/ -O - | grep sublevel-repo | sed -e 's|.*sublevel-repo||' -e "s|.*title='packages/||" -e "s|'.*||")" for PACKAGE in ${PACKAGES} do cat >> "${OUTPUT}" << EOF EOF done cat >> "${OUTPUT}" << EOF
${PACKAGE}: PTS | Git | snap
EOF done