X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=newVersion;h=e89ae7e471b63d5bb38898b8aa02de3287c66a71;hb=cf5b073acc5d49f03a491a8c6dca62d4792282cc;hp=bab6dc581bf96b322adbad8290fa065040399034;hpb=57b98be6348ecdf004efb03c4f939b70b0594637;p=wiringPi.git diff --git a/newVersion b/newVersion index bab6dc5..e89ae7e 100755 --- a/newVersion +++ b/newVersion @@ -41,3 +41,22 @@ Description: The wiringPi libraries, headers and gpio command Libraries to allow GPIO access on a Raspberry Pi from C and C++ programs as well as from the command-line EOF + +changelog=$(dpkg-parsechangelog) +olddebversion=$(printf "%s" "$changelog" | + sed -n '/^Version: / { s/^Version: //; p; q }') +newversion=`cat VERSION` + +if [ x"$olddebversion" != x"$newversion" ]; then + clog=debian/changelog + datestamp=$(date -R) + cat <$clog.new +wiringpi ($newversion) RASPBIAN; urgency=medium + + * New upstream version + + -- Gordon Henderson $datestamp + +END + mv -f $clog.new $clog +fi