2f50aa
#!/bin/sh
2f50aa
# Emulate the changelog part of rpmdev-bumpspec without the bumping of the
2f50aa
# rev. Because Laura keeps typoing her name and the date.
2f50aa
2f50aa
CURDATE=`date +"%a %b %d %Y"`
2f50aa
PACKAGER=`rpmdev-packager`
2f50aa
CHANGELOG="%changelog\n* $CURDATE $PACKAGER\n- $1\n"
2f50aa
2f50aa
awk -v CHANGE="$CHANGELOG" '/%changelog/ {print CHANGE} \
2f50aa
			!/%changelog/ { print $0 }' \
2f50aa
			< kernel.spec > kernel.spec.tmp
2f50aa
mv kernel.spec.tmp kernel.spec