0d12bdb
#!/bin/bash
0d12bdb
set -e
0d12bdb
( curl -fsS https://pagure.io/waiverdb/raw/master/f/waiverdb.spec ; sed -e '0,/^%changelog/d' waiverdb.spec ) > waiverdb.spec.new
0d12bdb
mv waiverdb.spec.new waiverdb.spec
0d12bdb
spectool -g waiverdb.spec
0d12bdb
echo "waiverdb.spec written, don't forget to add a new %changelog entry"