This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # Script to be run as part of the github pre-push hook. | |
| # | |
| # Checks that, if there is a "version-like" tag being pushed, all the files which are supposed to contain the tag do | |
| # actually have the correct tag value in them. If they do not, the push is blocked. | |
| # NB: this does _not_ automatically alter the source files and commit them with the correct tag value, nor prevent the | |
| # tag to be added to the wrong git commit locally (ie. a commit in which the source files have the wrong tag value). | |
| # All it does is prevent the developer from pushing the 'bad tags' to remote repositories, giving him/her the chance to | |
| # manually rectify the situation on the local repo before retrying to push. |