blob: 7160a3d696bcb1e79f7e649ab5e94ee228afb1d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#include <string.h>
#include "pcilib/build.h"
void BuildInfo() {
printf("\n");
#ifdef PCILIB_RELEASE
printf("Release: %s (r%s packaged 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);
}
}
|