File update-files.sh of Package zeek-nightly
#!/usr/bin/env bash
# Update the local set of debian and RPM files from the templates, without
# submitting anything. Mostly used for testing.
set -e
set -u
# Create the required build files from our skeletons
perl replace-version.pl zeek-nightly.spec.template > zeek-nightly.spec
for i in debian-template.*
do NEWNAME=debian.${i#debian-template.}
perl replace-version.pl $i > ${NEWNAME//-KIND/-nightly}
done
mv debian.zeek-nightly.dsc zeek-nightly.dsc