From 0d2eb6b28656decd48e14c922291870fcc889c04 Mon Sep 17 00:00:00 2001 From: Bebbo Date: Sat, 10 Feb 2018 09:46:49 +0100 Subject: [PATCH] fix cgx.sdk --- sdk/cgx.sdk | 2 +- sdk/install | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sdk/cgx.sdk b/sdk/cgx.sdk index be01006..3677cef 100644 --- a/sdk/cgx.sdk +++ b/sdk/cgx.sdk @@ -9,6 +9,6 @@ CGraphX/C/Include/cybergraphx/cybergraphics.h CGraphX/C/Include/pragmas/cybergraphics_pragmas.h CGraphX/FD/cybergraphics_lib.fd = cybergraphics.fd fd2sfd : cybergraphics.fd clib/cybergraphics_protos.h -sfdc : cybergraphics.sfd +sfdc : cybergraphics.sfd cybergfx cybergraphics stubs : cybergraphics.sfd symlink : include/cybergraphx include/cybergraphics diff --git a/sdk/install b/sdk/install index dfdaa7a..6f8fe12 100755 --- a/sdk/install +++ b/sdk/install @@ -57,6 +57,13 @@ case $1 in $3/bin/sfdc --mode=macros --target=m68k-amigaos --output=$3/m68k-amigaos/include/inline/$name.h $3/m68k-amigaos/lib/sfd/$sfd || exit 1 mkdir -p $3/m68k-amigaos/include/lvo/ $3/bin/sfdc --mode=lvo --target=m68k-amigaos --output=$3/m68k-amigaos/include/proto/$name.i $3/m68k-amigaos/lib/sfd/$sfd || exit 1 + if [ "${a[2]}" != "" ] && [ "${a[3]}" != "" ]; then + echo fixup names from ${a[2]} to ${a[3]} + echo sed -e "s/${a[2]}/${a[3]}/" $3/m68k-amigaos/include/proto/$name.h -i + sed -e "s/${a[2]}/${a[3]}/" $3/m68k-amigaos/include/proto/$name.h -i + sed -e "s/${a[2]}/${a[3]}/" $3/m68k-amigaos/include/proto/$name.i -i + sed -e "s/${a[2]}/${a[3]}/" $3/m68k-amigaos/include/inline/$name.h -i + fi ;; stubs) sfd=${a[1]}