mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-04 04:17:25 +00:00
30 lines
542 B
C
30 lines
542 B
C
/* copyright 2015-2017 radare2 by pancake */
|
|
|
|
#include <r_userconf.h>
|
|
#include <r_util.h>
|
|
|
|
#ifndef R2_GITTAP
|
|
#define R2_GITTAP ""
|
|
#endif
|
|
|
|
#ifndef R2_GITTIP
|
|
#define R2_GITTIP ""
|
|
#endif
|
|
|
|
#ifndef R2_BIRTH
|
|
#define R2_BIRTH "unknown"
|
|
#endif
|
|
|
|
static int blob_version(const char *program) {
|
|
printf ("%s "R2_VERSION" %d @ "
|
|
R_SYS_OS"-"
|
|
R_SYS_ARCH"-%d git.%s\n",
|
|
program, R2_VERSION_COMMIT,
|
|
(R_SYS_BITS & 8)? 64: 32,
|
|
*R2_GITTAP ? R2_GITTAP: "");
|
|
if (*R2_GITTIP) {
|
|
printf ("commit: "R2_GITTIP" build: "R2_BIRTH"\n");
|
|
}
|
|
return 0;
|
|
}
|