From 2f50aa19db3b3de4c7fc03a6299fe54d3aa35552 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Fri, 7 Oct 2016 13:59:14 -0700 Subject: Add scripts for automatically generating builds Many of the steps for day-to-day updates still require a lot of manual steps which can lead to typos. Add a series of scripts to make automate the manual steps and hopefully reduce errors. These are a work in progress because having them in tree makes it easier to work out issues. --- 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