diff options
author | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2005-05-29 14:03:38 +0000 |
---|---|---|
committer | schnetter <schnetter@83718e91-0e4f-0410-abf4-91180603181f> | 2005-05-29 14:03:38 +0000 |
commit | 08de25904f7d64a31d31ac8e70ca6df2d33ad004 (patch) | |
tree | bfc9f5bd664a0d3d8fc00e6898aafc8d85334f92 /src/announce.cc | |
parent | 3996f4dec8488695fd5ab2a245b7b1ceec4651c5 (diff) |
Create a unique ID for each build
git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/Formaline/trunk@22 83718e91-0e4f-0410-abf4-91180603181f
Diffstat (limited to 'src/announce.cc')
-rw-r--r-- | src/announce.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/announce.cc b/src/announce.cc index 1400012..46936b8 100644 --- a/src/announce.cc +++ b/src/announce.cc @@ -33,6 +33,10 @@ using namespace std; +extern "C" char const * Formaline_BuildID (); + + + static char * jobid = 0; @@ -45,6 +49,7 @@ create_jobid (CCTK_ARGUMENTS) DECLARE_CCTK_PARAMETERS; ostringstream jobidbuf; + jobidbuf << "job-"; char run_host [1000]; Util_GetHostName (run_host, sizeof run_host); @@ -225,6 +230,11 @@ Formaline_AnnounceInitial (CCTK_ARGUMENTS) // Compiling + { + char const * const build_id = Formaline_BuildID(); + stores.store ("build id", build_id); + } + #if 0 { char const * const compile_user = CCTK_CompileUser(); |