mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
install-universal-interfaces.sh: remove workaround for MacBinary library support
Since commit 7b597afbed
("accept .bin for universal interface files and update docs")
the interfaces-and-libraries.sh script now works directly with libraries in MacBinary
format, and so the existing workaround (converting MacBinary libraries to separate
BasiliskII-style data and resource files) can now be removed.
This commit is contained in:
parent
8ef9c3f315
commit
18ff16c932
@ -65,31 +65,13 @@ while IFS= read -r LINE; do
|
||||
UNIXFULLPATH="$UNIXPATH$LINE"
|
||||
|
||||
echo "Copying $HFSFULLPATH to $UNIXFULLPATH"
|
||||
|
||||
# PPC libraries need a resource fork, but the code in
|
||||
# interfaces-and-libraries.sh doesn't correctly detect InterfaceLib in
|
||||
# Macbinary format. Work around this for now by using Basilisk II format
|
||||
# which can be parsed by ResourceFile and still allows the filename
|
||||
# detection logic to work.
|
||||
if [[ $HFSPATH == *SharedLibraries: ]];
|
||||
then
|
||||
if [[ ! -d $UNIXPATH.rsrc ]];
|
||||
then
|
||||
mkdir $UNIXPATH.rsrc
|
||||
fi
|
||||
|
||||
# First copy as Macbinary
|
||||
# interfaces-and-libraries.sh can detect and use PPC libraries in
|
||||
# MacBinary format
|
||||
hcopy -m $HFSFULLPATH $UNIXFULLPATH.bin
|
||||
|
||||
# Extract data fork using normal name
|
||||
bash -c "cd $UNIXPATH && macunpack -d $UNIXFULLPATH.bin && mv $UNIXFULLPATH.data $UNIXFULLPATH"
|
||||
|
||||
# Extract resource fork into .rsrc directory
|
||||
bash -c "cd $UNIXPATH && macunpack -r $UNIXFULLPATH.bin && mv $UNIXFULLPATH.rsrc $UNIXPATH.rsrc/$LINE"
|
||||
|
||||
# Delete original Macbinary
|
||||
rm -rf $UNIXFULLPATH.bin
|
||||
else
|
||||
# Otherwise copy files in raw format
|
||||
hcopy -r $HFSFULLPATH $UNIXFULLPATH
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user