summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-12-21 14:23:47 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-12-21 14:26:04 +0100
commitb28cc5d5451109a370816bc84510b37209833fbd (patch)
treee77e31983f5b67ae096d66a3e5635ac6f1bd60e3
parente4ea19989e97fbecd1b22997cadb8fc5f54ade4a (diff)
downloadeurephia-b28cc5d5451109a370816bc84510b37209833fbd.tar.gz
eurephia-b28cc5d5451109a370816bc84510b37209833fbd.tar.xz
eurephia-b28cc5d5451109a370816bc84510b37209833fbd.zip
Added ./configure information to eurephiadm buildinfo
This is to help debugging even further, to be able to reproduce as similar builds as possible. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
-rw-r--r--eurephiadm/commands/buildinfo.c4
-rwxr-xr-xeurephiadm/mk_buildinfo.sh4
2 files changed, 7 insertions, 1 deletions
diff --git a/eurephiadm/commands/buildinfo.c b/eurephiadm/commands/buildinfo.c
index fa7b065..16c882a 100644
--- a/eurephiadm/commands/buildinfo.c
+++ b/eurephiadm/commands/buildinfo.c
@@ -79,7 +79,9 @@ int cmd_BuildInfo(eurephiaCTX *ctx, eurephiaSESSION *sess, eurephiaVALUES *cfg,
" Source base: " BUILDSOURCE "\n"
" Build date: " BUILDDATE "\n"
" Build host: " BUILDHOST "\n"
- " System info: " BUILDSYSTEM "\n");
+ " System info: " BUILDSYSTEM "\n"
+ " Configure: " BUILDCONFIGURE "\n");
+
#ifdef BUILDBRANCH
printf("\n * git information *\n");
printf(" repo dir: " GITDIR "\n"
diff --git a/eurephiadm/mk_buildinfo.sh b/eurephiadm/mk_buildinfo.sh
index d4577df..cdfe68c 100755
--- a/eurephiadm/mk_buildinfo.sh
+++ b/eurephiadm/mk_buildinfo.sh
@@ -44,6 +44,9 @@ else
buildsource="tar.bz2"
fi
+# Excract configure exectution
+configurecall="$(egrep "^# (.*)configure " ../configure.log | cut -b3-)"
+
cat <<EOF > buildinfo.h
/* Generated automatically by $0 */
/* Do not edit manually */
@@ -51,6 +54,7 @@ cat <<EOF > buildinfo.h
#define BUILDSYSTEM "${buildsystem}"
#define BUILDHOST "${buildhost}"
#define BUILDSOURCE "${buildsource}"
+#define BUILDCONFIGURE "${configurecall}"
EOF
if [[ -n "${gitrev}" ]]; then