/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool
348 by Suren A. Chilingaryan
Add build information
1
#include <stdio.h>
2
#include <string.h>
3
#include "pcilib/build.h"
4
5
void BuildInfo() {
6
    printf("\n");
374 by Suren A. Chilingaryan
Handle build.h in releases
7
#ifdef PCILIB_RELEASE
377.1.1 by Suren A. Chilingaryan
Fix dkms configuration
8
    printf("Release: %s (r%s packaged on %s in %s)\n", PCILIB_RELEASE, PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
374 by Suren A. Chilingaryan
Handle build.h in releases
9
#else /* PCILIB_RELEASE */
348 by Suren A. Chilingaryan
Add build information
10
    printf("Revision: %s built on %s in %s\n", PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
374 by Suren A. Chilingaryan
Handle build.h in releases
11
#endif /* PCILIB_RELEASE */
348 by Suren A. Chilingaryan
Add build information
12
    printf("Branch: %s by %s\n", PCILIB_REVISION_BRANCH, PCILIB_REVISION_AUTHOR);
13
    if (strlen(PCILIB_REVISION_MODIFICATIONS)) {
14
	printf("Modifications: %s - %s\n",  PCILIB_LAST_MODIFICATION, PCILIB_REVISION_MODIFICATIONS);
15
    }
16
}