您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

34 行
1.3 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. #################################################################################
  8. # This file is part of wiringPi:
  9. # A "wiring" library for the Raspberry Pi
  10. #
  11. # wiringPi is free software: you can redistribute it and/or modify
  12. # it under the terms of the GNU Lesser General Public License as published by
  13. # the Free Software Foundation, either version 3 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # wiringPi is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. # GNU Lesser General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU Lesser General Public License
  22. # along with wiringPi. If not, see <http://www.gnu.org/licenses/>.
  23. #################################################################################
  24. echo Updating to version: `cat VERSION`
  25. rm -f version.h
  26. vMaj=`cut -d. -f1 VERSION`
  27. vMin=`cut -d. -f2 VERSION`
  28. echo "#define VERSION \"`cat VERSION`\"" > version.h
  29. echo "#define VERSION_MAJOR $vMaj" >> version.h
  30. echo "#define VERSION_MINOR $vMin" >> version.h