First cut at online help under OS X. I just built the HTML version

of the manual using Halibut (with one additional magic tag in the
<HEAD> section), stuck it in the right part of the application
bundle, referenced it in Info.plist, and added a Help menu.
Everything else was automatic. Not bad!

[originally from svn r5190]
This commit is contained in:
Simon Tatham
2005-01-24 12:05:21 +00:00
parent d8eb0de7c2
commit 2040ff9631
5 changed files with 43 additions and 16 deletions

10
Recipe
View File

@ -40,6 +40,16 @@ pattern : [G] WINDOWS COMMON pattern
# Mac OS X unified application containing all the puzzles.
Puzzles : [MX] osx osx.icns osx-info.plist COMMON ALL
# For OS X, we must create the online help and include it in the
# application bundle.)
!begin osx
Puzzles_extra = Puzzles.app/Contents/Resources/Help/index.html
Puzzles.app/Contents/Resources/Help/index.html: \
Puzzles.app/Contents/Resources/Help puzzles.but
halibut --html=$@ puzzles.but
Puzzles.app/Contents/Resources/Help: Puzzles.app/Contents/Resources
mkdir -p Puzzles.app/Contents/Resources/Help
!end
# The `nullgame' source file is a largely blank one, which contains
# all the correct function definitions to compile and link, but