diff options
Diffstat (limited to 'sbe/image/buildInfo.py')
-rwxr-xr-x | sbe/image/buildInfo.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/sbe/image/buildInfo.py b/sbe/image/buildInfo.py deleted file mode 100755 index 919d4722..00000000 --- a/sbe/image/buildInfo.py +++ /dev/null @@ -1,25 +0,0 @@ -#! /usr/bin/python - -# This script will create header file sbe_build_info.H which will have -# buld information required by SBE code. -import os -buildInfoFileName = "sbe_build_info.H" - -def buildInfo(): - header = \ -"#ifndef SBE_BUILD_INFO_H \n\ -#define SBE_BUILD_INFO_H \n\n" - - footer = "\n#endif // SBE_BUILD_INFO_H" - commitId = "0x" + os.popen("git rev-parse --short=8 HEAD").read().rstrip() - - f = open( buildInfoFileName, 'w') - - f.write(header) - f.write("//Define SBE Commit ID \n") - f.write("#define SBE_COMMIT_ID " + commitId + "\n") - f.write(footer) - f.close() - -# Call buildInfo -buildInfo() |