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