From 47a895f435cccb2cb14eb5d0c52d2f6d4d904907 Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Wed, 12 Aug 2020 08:03:24 -0500 Subject: Linux v5.8.1 Signed-off-by: Justin M. Forbes --- scripts/add-changelog.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/add-changelog.sh (limited to 'scripts/add-changelog.sh') diff --git a/scripts/add-changelog.sh b/scripts/add-changelog.sh new file mode 100755 index 000000000..fa0157afb --- /dev/null +++ b/scripts/add-changelog.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Emulate the changelog part of rpmdev-bumpspec without the bumping of the +# rev. Because Laura keeps typoing her name and the date. + +CURDATE=`date +"%a %b %d %Y"` +PACKAGER=`rpmdev-packager` +CHANGELOG="%changelog\n* $CURDATE $PACKAGER\n- $1\n" + +awk -v CHANGE="$CHANGELOG" '/%changelog/ {print CHANGE} \ + !/%changelog/ { print $0 }' \ + < kernel.spec > kernel.spec.tmp +mv kernel.spec.tmp kernel.spec -- cgit