blob: 299d7a78293392a2935f2f6499dff2f0ff4c1744 [file] [log] [blame]
Ian Jackson95a29282015-09-09 23:30:16 +00001#!/bin/sh -e
Gordon Henderson7cb81742015-01-31 16:43:08 +00002#
3# newVersion:
4# Utility to create the version.h include file for the gpio command.
Gordon Henderson170dce52015-09-20 19:30:38 +01005# and the Debian package
Gordon Henderson7cb81742015-01-31 16:43:08 +00006#
7# Copyright (c) 2012-2015 Gordon Henderson
8#################################################################################
9# This file is part of wiringPi:
Gordon Hendersonb1dfc182016-12-12 14:19:55 +000010# A "wiring" library for the Raspberry Pi
Gordon Henderson7cb81742015-01-31 16:43:08 +000011#
12# wiringPi is free software: you can redistribute it and/or modify
13# it under the terms of the GNU Lesser General Public License as published by
14# the Free Software Foundation, either version 3 of the License, or
15# (at your option) any later version.
16#
17# wiringPi is distributed in the hope that it will be useful,
18# but WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20# GNU Lesser General Public License for more details.
21#
22# You should have received a copy of the GNU Lesser General Public License
23# along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
24#################################################################################
25
Gordon Henderson170dce52015-09-20 19:30:38 +010026echo Updating to version: `cat VERSION`
27
28rm -f gpio/version.h
29echo "#define VERSION \"`cat VERSION`\"" > gpio/version.h
30
31rm -f debian-template/wiringPi/DEBIAN/control
32cat > debian-template/wiringPi/DEBIAN/control <<EOF
33Package: wiringpi
34Version: `cat VERSION`
35Section: libraries
36Priority: optional
37Architecture: armhf
38Depends: libc6
39Maintainer: Gordon Henderson <projects@drogon.net>
40Description: The wiringPi libraries, headers and gpio command
41 Libraries to allow GPIO access on a Raspberry Pi from C and C++
42 programs as well as from the command-line
43EOF