From 287362e8623c5ebd0e89a02aa045a415c271fdec Mon Sep 17 00:00:00 2001 From: bebbo Date: Tue, 24 Apr 2018 22:52:04 +0200 Subject: [PATCH] work with bash 3 --- sdk/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/install b/sdk/install index 6f8fe12..9066eea 100755 --- a/sdk/install +++ b/sdk/install @@ -42,14 +42,14 @@ case $1 in fd=${a[1]} proto=${a[2]} file=$(basename $fd) - name=${file::-3} + name=${file%???} mkdir -p $3/m68k-amigaos/lib/sfd/ $3/bin/fd2sfd -o $3/m68k-amigaos/lib/sfd/$name.sfd $3/m68k-amigaos/lib/fd/$fd $3/m68k-amigaos/include/$proto || exit 1 ;; sfdc) sfd=${a[1]} file=$(basename $sfd) - name=${file::-4} + name=${file%????} mkdir -p $3/m68k-amigaos/include/proto/ $3/bin/sfdc --mode=proto --target=m68k-amigaos --output=$3/m68k-amigaos/include/proto/$name.h $3/m68k-amigaos/lib/sfd/$sfd || exit 1 sed -e 's/\(\)/\L\1/' -e 's/\(\)/\L\1/' -e 's/\(\)/\L\1/' -e 's/\(\)/\L\1/' $3/m68k-amigaos/include/proto/$name.h -i @@ -68,7 +68,7 @@ case $1 in stubs) sfd=${a[1]} file=$(basename $sfd) - name=${file::-4} + name=${file%????} $3/bin/sfdc --mode=autoopen --target=m68k-amigaos --output=build/$2/$name.c $3/m68k-amigaos/lib/sfd/$name.sfd || exit 1 sed -e 's/__inline//g' -e 's/: \"d0\",/:/g' build/$2/$name.c -i || exit 1 echo $3/bin/m68k-amigaos-gcc -Os -noixemul -fomit-frame-pointer build/$2/$name.c -c @@ -90,7 +90,7 @@ case $1 in lib) sfd=${a[1]} file=$(basename $sfd) - name=${file::-4} + name=${file%????} $3/bin/sfdc --mode=stubs --target=m68k-amigaos --output=build/$2/lib$2.c $3/m68k-amigaos/lib/sfd/$name.sfd || exit 1 sed -e 's/__inline//g' -e 's/: \"d0\",/:/g' build/$2/lib$2.c -i || exit 1 echo $3/bin/m68k-amigaos-gcc -Os -noixemul -fomit-frame-pointer build/$2/lib$2.c -c