Add patch and options for 'true' Lion fullscreen mode

This commit is contained in:
2012-06-07 12:02:31 +01:00
parent a8fbe89f3f
commit 88e897cc03

View File

@@ -47,8 +47,16 @@ def patches(opts = {})
p = []
if opts[:fullscreen]
p << 'https://raw.github.com/gist/1746342/' +
'702dfe9e2dd79fddd536aa90d561efdeec2ba716'
if !opts[:lion]
# Use non-Lion fullscreen patch. Works on Lion, but doesn't integrate
# with Mission Control like a "true" Lion Fullscreen app.
p << 'https://raw.github.com/gist/1746342/' +
'702dfe9e2dd79fddd536aa90d561efdeec2ba716'
else
# Use a "true" Lion Fullscreen patch.
p << 'https://raw.github.com/gist/2238260/' +
'e44224323706d3fa8b435e75a0da7b461801ae5f'
end
end
if opts[:srgb]
@@ -65,11 +73,19 @@ end
#
def parse_options
options = {:fullscreen => true, :srgb => true}
options = {
:lion => false,
:fullscreen => true,
:srgb => true
}
OptionParser.new do |opts|
opts.banner = "Usage: ./build-emacs-for-osx [options] [branch/tag/sha]"
opts.on("--lion", "Enable 'true' Lion fullscreen mode.") do
options[:lion] = true
end
opts.on("--no-fullscreen", "Skip fullscreen patch.") do
options[:fullscreen] = false
end