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 <<END - $clog >$clog.new
+wiringpi ($newversion) RASPBIAN; urgency=medium
+
+ * New upstream version
+
+ -- Gordon Henderson <projects@drogon.net> $datestamp
+
+END
+ mv -f $clog.new $clog
+fi