Skip to content
Permalink
Browse files

Merge pull request #13321 from idaholab/pragma-in-repo-rev

`get_repo_revision.py` generates `#pragma once`
  • Loading branch information...
permcody committed Apr 29, 2019
2 parents 8b24685 + 2edb23b commit 24a5d3904897f9b159bd8a4f75e73db735bb4196
Showing with 2 additions and 5 deletions.
  1. +2 −5 framework/scripts/get_repo_revision.py
@@ -182,13 +182,10 @@ def writeRevision(self, repo_location, app_name, revision_header):
f = open(revision_header, "w")
f.write( '/* THIS FILE IS AUTOGENERATED - DO NOT EDIT */\n' \
'\n'
'#ifndef ' + app_definition + '_H\n'
'#define ' + app_definition + '_H\n'
'#pragma once\n'
'\n'
'#define ' + app_definition + ' "' + app_revision + '"\n'
'#define ' + app_def_name + '_VERSION "' + app_version + '"\n'
'\n'
'#endif // ' + app_definition + '_H\n')
'#define ' + app_def_name + '_VERSION "' + app_version + '"\n')
f.close()
elif self.is_git_repo:
# Nothing has changed, but if we don't do anything the revision file

0 comments on commit 24a5d39

Please sign in to comment.
You can’t perform that action at this time.