tvheadend/support/changelog
Adam Sutton 9a655a6218 build: Some tidying up of the build system
mainly this is just cleaning up the output from the build commands
but also added debian/changelog to ignore file to stop it being
accidentally committed back.
2013-01-11 11:13:29 +00:00

26 lines
756 B
Bash
Executable file

#!/bin/bash
#
# Create the Tvheadend changelog
#
# Arguments
CHANGELOG=$1
DIST=$2
VER=$3
# Defaults
[ -z "$CHANGELOG" ] && CHANGELOG=$(dirname $0)/../debian/changelog
[ -z "$DEBEMAIL" ] && DEBEMAIL="andreas@lonelycoder.com"
[ -z "$DEBFULLNAME" ] && DEBFULLNAME="Andreas Öman"
[ -z "$VER" ] && VER=$($(dirname $0)/version)
[ ! -z "$DIST" ] && VER=${VER}~${DIST}
[ -z "$DIST" ] && DIST=unstable
# Output
NOW=$(date -R)
echo >${CHANGELOG} "tvheadend (${VER}) ${DIST}; urgency=low"
echo >>${CHANGELOG}
echo >>${CHANGELOG} " * The full changelog can be found at "
echo >>${CHANGELOG} " http://www.lonelycoder.com/tvheadend/download"
echo >>${CHANGELOG}
echo >>${CHANGELOG} " -- ${DEBFULLNAME} <${DEBEMAIL}> ${NOW}"