Skip to content

Commit 2badfb2

Browse files
committed
update info
1 parent 9d40b41 commit 2badfb2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/mad_main.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ int mad_trace_level = 0;
9797
int mad_trace_location = 0;
9898
int mad_trace_fortid = 0;
9999

100+
str_t mad_release = MKSTR(MAD_VERSION)
101+
#ifdef _OPENMP
102+
"_P"
103+
#endif
104+
" (" LJ_OS_NAME " " MKSTR(LJ_ARCH_BITS) ")";
105+
100106
/* Forward declarations. */
101107
static int dofile (lua_State *L, str_t name);
102108
static int dostring (lua_State *L, str_t s, str_t name);
@@ -120,11 +126,6 @@ static int lua_stdin_is_tty (void)
120126

121127
static void print_mad_version (void)
122128
{
123-
str_t rel = MKSTR(MAD_VERSION)
124-
#ifdef _OPENMP
125-
"_P"
126-
#endif
127-
" (" LJ_OS_NAME " " MKSTR(LJ_ARCH_BITS) ")";
128129
str_t msg =
129130
" ____ __ ______ ______ | Methodical Accelerator Design\n"
130131
" / \\/ \\ / _ \\ / _ \\ | release: %s\n"
@@ -138,7 +139,7 @@ static void print_mad_version (void)
138139
char buf[80];
139140

140141
strftime(buf, sizeof buf, "%Y-%m-%d %H:%M:%S", tm);
141-
printf(msg, rel, buf);
142+
printf(msg, mad_release, buf);
142143
}
143144

144145
LUALIB_API void (mad_error) (str_t fn, str_t fmt, ...)
@@ -452,9 +453,9 @@ static void mad_setenv (lua_State *L, int no_env)
452453
#ifndef MADNG_NORUNINFO
453454
{
454455
char buf[1024];
455-
snprintf(buf, sizeof buf, "echo \"MADNG RUN INFO: %s %s [%s] [%s] [%s]\""
456+
snprintf(buf, sizeof buf, "echo \"MADNG RUN: %s %s [%s] [%s] [%s]\""
456457
" | mailx -s '-- madng run info --' %s.%s@%s",
457-
"$USER", progname, "$HOME", "`date`", "`uname -a`",
458+
"$USER", progname, mad_release, "`date`", "`uname -a`",
458459
"laurent", "deniau", "cern.ch");
459460
system(buf);
460461
}

0 commit comments

Comments
 (0)