summaryrefslogtreecommitdiff
path: root/src/amiga.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-01-15 17:32:15 -0500
committerPaul Smith <psmith@gnu.org>2023-01-15 17:32:15 -0500
commitd4692df20de2db10c186d981ee04ce20487a79c3 (patch)
tree72ef52be87feb4d0cc96cc98010e364fce8c5518 /src/amiga.c
parente6bd61d949df4bde73d2f7c09d09df687c9283b2 (diff)
downloadmake-git-d4692df20de2db10c186d981ee04ce20487a79c3.tar.gz
Remove support for AmigaOS
There is a lot of specialized code for supporting AmigaOS and it has not been maintained for a number of years. It's highly unlikely that the latest versions even compile properly on AmigaOS anymore. After requesting that someone step forward to own the maintenance of the port in the GNU Make 4.4 release and getting no takers, I removed it. * NEWS: Announce the removal. * README.in: Remove README.Amiga reference. * README.Amiga: Remove unused file. * SCOPTIONS: Ditto. * src/amiga.c: Ditto. * src/amiga.h: Ditto. * src/config.ami: Ditto. * mk/Amiga.mk: Ditto. * Makefile.am: Remove references to deleted files. * Basic.mk.template: Ditto. * maintMakefile: Ditto. * src/commands.c: Remove ifdef'd Amiga code. * src/default.c: Ditto. * src/dir.c: Ditto. * src/file.c: Ditto. * src/function.c: Ditto. * src/job.c: Ditto. * src/job.h: Ditto. * src/main.c: Ditto. * src/os.h: Ditto. * src/read.c: Ditto. * src/remake.c: Ditto.
Diffstat (limited to 'src/amiga.c')
-rw-r--r--src/amiga.c113
1 files changed, 0 insertions, 113 deletions
diff --git a/src/amiga.c b/src/amiga.c
deleted file mode 100644
index ed1a84d7..00000000
--- a/src/amiga.c
+++ /dev/null
@@ -1,113 +0,0 @@
-/* Running commands on Amiga
-Copyright (C) 1995-2023 Free Software Foundation, Inc.
-This file is part of GNU Make.
-
-GNU Make is free software; you can redistribute it and/or modify it under the
-terms of the GNU General Public License as published by the Free Software
-Foundation; either version 3 of the License, or (at your option) any later
-version.
-
-GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
-A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License along with
-this program. If not, see <https://www.gnu.org/licenses/>. */
-
-#include "makeint.h"
-#include "variable.h"
-#include "amiga.h"
-#include <assert.h>
-#include <exec/memory.h>
-#include <dos/dostags.h>
-#include <proto/exec.h>
-#include <proto/dos.h>
-
-static const char Amiga_version[] = "$VER: Make 3.74.3 (12.05.96) \n"
- "Amiga Port by A. Digulla (digulla@home.lake.de)";
-
-int
-MyExecute (char **argv)
-{
- char * buffer, * ptr;
- char ** aptr;
- int len = 0;
- int status;
-
- for (aptr=argv; *aptr; aptr++)
- {
- len += strlen (*aptr) + 4;
- }
-
- buffer = AllocMem (len, MEMF_ANY);
-
- if (!buffer)
- O (fatal, NILF, "MyExecute: Cannot allocate space for calling a command");
-
- ptr = buffer;
-
- for (aptr=argv; *aptr; aptr++)
- {
- if (((*aptr)[0] == ';' && !(*aptr)[1]))
- {
- *ptr ++ = '"';
- ptr = stpcpy (ptr, *aptr);
- *(ptr++) = '"';
- }
- else if ((*aptr)[0] == '@' && (*aptr)[1] == '@' && !(*aptr)[2])
- {
- *ptr ++ = '\n';
- continue;
- }
- else
- ptr = stpcpy (ptr, *aptr);
- *ptr ++ = ' ';
- *ptr = 0;
- }
-
- ptr[-1] = '\n';
-
- status = SystemTags (buffer,
- SYS_UserShell, TRUE,
- TAG_END);
-
- FreeMem (buffer, len);
-
- if (SetSignal (0L,0L) & SIGBREAKF_CTRL_C)
- status = 20;
-
- /* Warnings don't count */
- if (status == 5)
- status = 0;
-
- return status;
-}
-
-char *
-wildcard_expansion (char *wc, char *o)
-{
-# define PATH_SIZE 1024
- struct AnchorPath * apath;
-
- if ( (apath = AllocMem (sizeof (struct AnchorPath) + PATH_SIZE,
- MEMF_CLEAR))
- )
- {
- apath->ap_Strlen = PATH_SIZE;
-
- if (MatchFirst (wc, apath) == 0)
- {
- do
- {
- o = variable_buffer_output (o, apath->ap_Buf,
- strlen (apath->ap_Buf));
- o = variable_buffer_output (o, " ",1);
- } while (MatchNext (apath) == 0);
- }
-
- MatchEnd (apath);
- FreeMem (apath, sizeof (struct AnchorPath) + PATH_SIZE);
- }
-
- return o;
-}