5 GARGDIST
=build
/macosx.release
6 BUNDLE
=${out}/Applications
/Gargoyle.app
/Contents
28 mkdir
-p $BUNDLE/MacOS
29 mkdir
-p $BUNDLE/Frameworks
30 mkdir
-p $BUNDLE/Resources
31 mkdir
-p $BUNDLE/PlugIns
33 install_name_tool
-id @executable_path
/..
/Frameworks
/libgarglk.dylib
$GARGDIST/garglk
/libgarglk.dylib
36 install_name_tool
-change @executable_path
/libgarglk.dylib @executable_path
/..
/Frameworks
/libgarglk.dylib
$GARGDIST/$file || true
37 cp -f $GARGDIST/$file $BUNDLE/PlugIns
40 cp -f garglk
/launcher.plist
$BUNDLE/Info.plist
41 cp -f $GARGDIST/garglk
/gargoyle
$BUNDLE/MacOS
/Gargoyle
42 cp -f $GARGDIST/garglk
/libgarglk.dylib
$BUNDLE/Frameworks
43 cp -f $GARGDIST/garglk
/libgarglk.dylib
$BUNDLE/PlugIns
44 cp -f garglk
/launchmac.nib
$BUNDLE/Resources
/MainMenu.nib
45 cp -f garglk
/garglk.ini
$BUNDLE/Resources
46 cp -f garglk
/*.icns
$BUNDLE/Resources
47 cp -f licenses
/* $BUNDLE/Resources
49 mkdir
$BUNDLE/Resources
/Fonts
50 cp fonts
/LiberationMono
*.ttf
$BUNDLE/Resources
/Fonts
51 cp fonts
/LinLibertine
*.otf
$BUNDLE/Resources
/Fonts
54 ln -s $BUNDLE/MacOS
/Gargoyle
${out}/bin
/gargoyle