You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 rivejä
1.9 KiB

  1. #!/bin/sh -e
  2. #
  3. # newVersion:
  4. # Utility to create the version.h include file for the gpio command.
  5. # and the Debian package
  6. #
  7. # Copyright (c) 2012-2015 Gordon Henderson
  8. #################################################################################
  9. # This file is part of wiringPi:
  10. # A "wiring" library for the Raspberry Pi
  11. #
  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. echo Updating to version: `cat VERSION`
  26. rm -f version.h
  27. vMaj=`cut -d. -f1 VERSION`
  28. vMin=`cut -d. -f2 VERSION`
  29. echo "#define VERSION \"`cat VERSION`\"" > version.h
  30. echo "#define VERSION_MAJOR $vMaj" >> version.h
  31. echo "#define VERSION_MINOR $vMin" >> version.h
  32. # rm -f debian-template/wiringPi/DEBIAN/control
  33. # cat > debian-template/wiringPi/DEBIAN/control <<EOF
  34. # Package: wiringpi
  35. # Version: `cat VERSION`
  36. # Section: libraries
  37. # Priority: optional
  38. # Architecture: armhf
  39. # Depends: libc6
  40. # Maintainer: Phil Howard <wiringpi@gadgetoid.com>
  41. # Uploaders: Phil Howard <wiringpi@gadgetoid.com>
  42. # Description: The wiringPi libraries, headers and gpio command
  43. # Libraries to allow GPIO access on a Raspberry Pi from C and C++
  44. # and BASIC programs as well as from the command-line
  45. # Homepage: https://github.com/WiringPi/WiringPi/
  46. # Bugs: https://github.com/WiringPi/WiringPi/
  47. # EOF