mirror of
https://github.com/bebbo/amiga-gcc.git
synced 2026-05-09 03:55:00 +00:00
work with bash 3
This commit is contained in:
@@ -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/\(<clib\/.*>\)/\L\1/' -e 's/\(<defines\/.*>\)/\L\1/' -e 's/\(<inline\/.*>\)/\L\1/' -e 's/\(<pragmas\/.*>\)/\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
|
||||
|
||||
Reference in New Issue
Block a user