Pushing to 2.39 as I have have not done the last one rightly...
diff --git a/newVersion b/newVersion
index 299d7a7..ed4b438 100755
--- a/newVersion
+++ b/newVersion
@@ -25,8 +25,12 @@
echo Updating to version: `cat VERSION`
-rm -f gpio/version.h
-echo "#define VERSION \"`cat VERSION`\"" > gpio/version.h
+rm -f version.h
+vMaj=`cut -d. -f1 VERSION`
+vMin=`cut -d. -f2 VERSION`
+echo "#define VERSION \"`cat VERSION`\"" > version.h
+echo "#define VERSION_MAJOR $vMaj" >> version.h
+echo "#define VERSION_MINOR $vMin" >> version.h
rm -f debian-template/wiringPi/DEBIAN/control
cat > debian-template/wiringPi/DEBIAN/control <<EOF
@@ -39,5 +43,5 @@
Maintainer: Gordon Henderson <projects@drogon.net>
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
+ and BASIC programs as well as from the command-line
EOF