diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-05 16:16:13 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-05 16:16:13 +0100 |
commit | 2f99c578716ebe81ddd266389f3ff614b4595a56 (patch) | |
tree | 082932caafc6e3e34f2938402f969cb4944b921f /pcitool/buildinfo.c | |
parent | ffc7b6d717d258a2da8a4392e551111b9e932648 (diff) | |
download | pcitool-2f99c578716ebe81ddd266389f3ff614b4595a56.tar.gz pcitool-2f99c578716ebe81ddd266389f3ff614b4595a56.tar.bz2 pcitool-2f99c578716ebe81ddd266389f3ff614b4595a56.tar.xz pcitool-2f99c578716ebe81ddd266389f3ff614b4595a56.zip |
Handle build.h in releases
Diffstat (limited to 'pcitool/buildinfo.c')
-rw-r--r-- | pcitool/buildinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pcitool/buildinfo.c b/pcitool/buildinfo.c index 624a934..2206c62 100644 --- a/pcitool/buildinfo.c +++ b/pcitool/buildinfo.c @@ -4,7 +4,11 @@ void BuildInfo() { printf("\n"); +#ifdef PCILIB_RELEASE + printf("Release: %s (revision: %s built on %s in %s)\n", PCILIB_RELEASE, PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR); +#else /* PCILIB_RELEASE */ printf("Revision: %s built on %s in %s\n", PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR); +#endif /* PCILIB_RELEASE */ printf("Branch: %s by %s\n", PCILIB_REVISION_BRANCH, PCILIB_REVISION_AUTHOR); if (strlen(PCILIB_REVISION_MODIFICATIONS)) { printf("Modifications: %s - %s\n", PCILIB_LAST_MODIFICATION, PCILIB_REVISION_MODIFICATIONS); |