From 9eecd36013ff60c5fea0d24fc609ef786ed6f21a Mon Sep 17 00:00:00 2001 From: "Alan R. Rogers" Date: Thu, 11 Jan 2018 14:56:55 -0700 Subject: [PATCH] Removed mkversion.h; added version.h. --- .gitignore | 1 - src/mkversion.py | 12 ------------ src/version.h | 3 +++ 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100755 src/mkversion.py create mode 100644 src/version.h diff --git a/.gitignore b/.gitignore index 44fbbfbf..cf10a65e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ core depend raf -version.h xboot xdtnorm xexopar diff --git a/src/mkversion.py b/src/mkversion.py deleted file mode 100755 index dbfbc80c..00000000 --- a/src/mkversion.py +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/python -import shlex, subprocess - -cmd = 'git log -n 1 --date=short --format=format:"rev.%ad.%h" HEAD' -args = shlex.split(cmd) -p = subprocess.Popen(args, stdout=subprocess.PIPE) -sha = p.stdout.readline() -p.terminate() - -print "#ifndef VERSION" -print '#define VERSION "%s"' % sha -print "#endif" diff --git a/src/version.h b/src/version.h new file mode 100644 index 00000000..074929b9 --- /dev/null +++ b/src/version.h @@ -0,0 +1,3 @@ +#ifndef VERSION +#define VERSION "1.0" +#endif