summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1996-05-13 18:39:52 +0000
committerRoland McGrath <roland@redhat.com>1996-05-13 18:39:52 +0000
commit678b14fb7ecf715b98b09f9620a8e06b1aac7656 (patch)
treefe282dc4eca782cea37954f827e62477a59af98d /function.c
parentefbe1b64111495a22b048ddbfc12abd33d972bd5 (diff)
downloadgunmake-678b14fb7ecf715b98b09f9620a8e06b1aac7656.tar.gz
Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
* function.c: Use special function wildcard_expansion() for $(wildcard ) to allow Amiga wildcards The current directory on Amiga is "" instead of "."
Diffstat (limited to 'function.c')
-rw-r--r--function.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/function.c b/function.c
index 616b8f2..73e34a9 100644
--- a/function.c
+++ b/function.c
@@ -27,6 +27,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <process.h>
#include <fcntl.h>
#endif
+#ifdef _AMIGA
+#include "amiga.h"
+#endif
static char *string_glob PARAMS ((char *line));
@@ -342,10 +345,13 @@ expand_function (o, function, text, end)
#ifndef VMS /* not supported for vms yet */
case function_shell:
{
- char **argv, **envp;
+ char **argv;
char *error_prefix;
+#ifndef _AMIGA
+ char **envp;
int pipedes[2];
int pid;
+#endif
/* Expand the command line. */
text = expand_argument (text, end);
@@ -991,8 +997,12 @@ expand_function (o, function, text, end)
case function_wildcard:
text = expand_argument (text, end);
+#ifdef _AMIGA
+ o = wildcard_expansion (text, o);
+#else
p = string_glob (text);
o = variable_buffer_output (o, p, strlen (p));
+#endif
free (text);
break;
@@ -1210,8 +1220,12 @@ index argument");
#ifdef VMS
o = variable_buffer_output (o, "[]", 2);
#else
+#ifndef _AMIGA
o = variable_buffer_output (o, "./", 2);
-#endif
+#else
+ /* o = o */; /* Just a nop... */
+#endif /* AMIGA */
+#endif /* !VMS */
else
/* The entire name is the basename. */
o = variable_buffer_output (o, p2, len);