History

Merge pull request #260 from mcayland/fix/minor-docker-updates

Minor docker updates

Wolfgang Thaller committed 2 years ago

Commit 929acbb2 parents 7b597af 18ff16c2 files · +4 −22Browse files

Unified · Split

2 files
  1. README.md +1 −1
  2. install-universal-interfaces.sh +3 −21
README.md+1−1
@@ -254,7 +254,7 @@ $ docker run --rm -v $(pwd):/root \ · 253 unmodified lines
254254 EOF
255255 ```
256256
257−Note that `entrypoint.sh` checks to see if the universal interfaces are installed into
257+Note that `docker-entrypoint.sh` checks to see if the universal interfaces are installed into
258258 `/Retro68/toolchain/universal` first before attempting to access the file or URL specified
259259 by INTERFACESFILE. This means that it is possible to use caching or another volume so that
260260 the universal interfaces are only processed once to speed up builds e.g.
install-universal-interfaces.sh+3−21
@@ -65,31 +65,13 @@ while IFS= read -r LINE; do · 64 unmodified lines
6565 UNIXFULLPATH="$UNIXPATH$LINE"
6666
6767 echo "Copying $HFSFULLPATH to $UNIXFULLPATH"
68−
69− # PPC libraries need a resource fork, but the code in
70− # interfaces-and-libraries.sh doesn't correctly detect InterfaceLib in
71− # Macbinary format. Work around this for now by using Basilisk II format
72− # which can be parsed by ResourceFile and still allows the filename
73− # detection logic to work.
7468 if [[ $HFSPATH == *SharedLibraries: ]];
7569 then
76− if [[ ! -d $UNIXPATH.rsrc ]];
77− then
78− mkdir $UNIXPATH.rsrc
79− fi
80−
81− # First copy as Macbinary
70+ # interfaces-and-libraries.sh can detect and use PPC libraries in
71+ # MacBinary format
8272 hcopy -m $HFSFULLPATH $UNIXFULLPATH.bin
83−
84− # Extract data fork using normal name
85− bash -c "cd $UNIXPATH && macunpack -d $UNIXFULLPATH.bin && mv $UNIXFULLPATH.data $UNIXFULLPATH"
86−
87− # Extract resource fork into .rsrc directory
88− bash -c "cd $UNIXPATH && macunpack -r $UNIXFULLPATH.bin && mv $UNIXFULLPATH.rsrc $UNIXPATH.rsrc/$LINE"
89−
90− # Delete original Macbinary
91− rm -rf $UNIXFULLPATH.bin
9273 else
74+ # Otherwise copy files in raw format
9375 hcopy -r $HFSFULLPATH $UNIXFULLPATH
9476 fi
9577 fi

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t