mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 18:32:56 +00:00
28 lines
524 B
C
28 lines
524 B
C
/* copyright 2015 radare2 by pancake */
|
|
#include <r_userconf.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_ENDIAN"-"
|
|
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;
|
|
}
|