diff options
author | Roland McGrath <roland@redhat.com> | 1993-08-19 20:36:05 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1993-08-19 20:36:05 +0000 |
commit | cbbf3ee5ef066654a24f5a8c73173feb24c408ce (patch) | |
tree | f1775c534f1db561b378ad38dc87e93d58ff2529 /variable.c | |
parent | 8171a9ba6ed39f2e305f20091f75249f26e9b5bc (diff) | |
download | gunmake-cbbf3ee5ef066654a24f5a8c73173feb24c408ce.tar.gz |
Formerly variable.c.~25~
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -347,11 +347,20 @@ define_automatic_variables () { extern char default_shell[]; register struct variable *v; - char buf[100]; + char buf[200]; sprintf (buf, "%u", makelevel); (void) define_variable ("MAKELEVEL", 9, buf, o_env, 0); + sprintf (buf, "%s%s%s", + version_string, + (remote_description == 0 || remote_description[0] == '\0') + ? "" : "-", + (remote_description == 0 || remote_description[0] == '\0') + ? "" : remote_description); + (void) define_variable ("MAKE_VERSION", 12, buf, o_default, 0); + + /* This won't override any definition, but it will provide one if there isn't one there. */ v = define_variable ("SHELL", 5, default_shell, o_default, 0); |