chiark / gitweb /
Updated the Debian build system thanks to Ian Jackson for the
[wiringPi.git] / newVersion
similarity index 64%
rename from gpio/newVersion
rename to newVersion
index b9197434c3c357dc36193cf09c97e9ebee0975a8..bab6dc581bf96b322adbad8290fa065040399034 100755 (executable)
@@ -2,6 +2,7 @@
 #
 # newVersion:
 #      Utility to create the version.h include file for the gpio command.
+#      and the Debian package
 #
 #      Copyright (c) 2012-2015 Gordon Henderson
 #################################################################################
 #    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.
 #################################################################################
 
-rm -f version.h
-echo "#define VERSION \"`cat ../VERSION`\"" > version.h
+echo Updating to version: `cat VERSION`
+
+rm -f gpio/version.h
+echo "#define VERSION \"`cat VERSION`\"" > gpio/version.h
+
+rm -f debian-template/wiringPi/DEBIAN/control
+cat > debian-template/wiringPi/DEBIAN/control <<EOF
+Package: wiringpi
+Version: `cat VERSION`
+Section: libraries
+Priority: optional
+Architecture: armhf
+Depends: libc6
+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
+EOF