diff options
author | Roland McGrath <roland@redhat.com> | 1992-07-13 21:51:47 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1992-07-13 21:51:47 +0000 |
commit | 8ef3af8bed76e41b3fde39df021b086cf88b2b04 (patch) | |
tree | 46b293ffff65f081a3551ccf9c3b5a685d7b5d06 | |
parent | 4eb52d9a45708e99a31ac36afba381402dc0f98b (diff) | |
download | gunmake-8ef3af8bed76e41b3fde39df021b086cf88b2b04.tar.gz |
Formerly commands.c.~9~
-rw-r--r-- | commands.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -175,7 +175,17 @@ set_file_variables (file) unsigned int Dlen, Flen; c = dep_name (d); - len = strlen (c); + +#ifndef NO_ARCHIVES + if (ar_name (c)) + { + c = index (c, '(') + 1; + len = strlen (c) - 1; + } + else +#endif + len = strlen (c); + bcopy (c, cp, len); cp += len; *cp++ = ' '; |