From c3ebbbf35d712613024488098645f432160f9e26 Mon Sep 17 00:00:00 2001 From: tjg Date: Wed, 13 Oct 1999 16:29:06 +0000 Subject: Feature: replace `-V' with `version' variable. --- var.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'var.c') diff --git a/var.c b/var.c index 8ef453b..e5fdfcb 100644 --- a/var.c +++ b/var.c @@ -57,14 +57,18 @@ extern bool varassign_string(char *extdef) { associated with $status) */ +static List id = { "$Release: @(#)" PACKAGE " " VERSION " " RELDATE " $", 0, 0 }; + extern List *varlookup(char *name) { Variable *look; List *ret, *l; int sub; - if (streq(name, "status")) - return sgetstatus(); if (streq(name, "apids")) return sgetapids(); + if (streq(name, "status")) + return sgetstatus(); + if (streq(name, "version")) + return &id; if (*name != '\0' && (sub = a2u(name)) != -1) { /* handle $1, $2, etc. */ for (l = varlookup("*"); l != NULL && sub != 0; --sub) l = l->n; -- cgit v1.2.3