/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcitool/buildinfo.c

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-05 15:16:13 UTC
  • Revision ID: csa@suren.me-20160305151613-y724owo6n62xv4f2
Handle build.h in releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
void BuildInfo() {
6
6
    printf("\n");
 
7
#ifdef PCILIB_RELEASE
 
8
    printf("Release: %s (revision: %s built on %s in %s)\n", PCILIB_RELEASE, PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
 
9
#else /* PCILIB_RELEASE */
7
10
    printf("Revision: %s built on %s in %s\n", PCILIB_REVISION, PCILIB_BUILD_DATE, PCILIB_BUILD_DIR);
 
11
#endif /* PCILIB_RELEASE */
8
12
    printf("Branch: %s by %s\n", PCILIB_REVISION_BRANCH, PCILIB_REVISION_AUTHOR);
9
13
    if (strlen(PCILIB_REVISION_MODIFICATIONS)) {
10
14
        printf("Modifications: %s - %s\n",  PCILIB_LAST_MODIFICATION, PCILIB_REVISION_MODIFICATIONS);