mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 10:46:39 +00:00
Use sRGB patch by default.
This also applies some kind of convention for the available options. `--srgb` is still defined for backwards compatibility, but it technically does nothing.
This commit is contained in:
@@ -30,11 +30,11 @@ this in Emacs built with it.
|
||||
Myself I run the following command which will download a tarball of the
|
||||
`master` branch, apply the fullscreen and sRGB patches, and build Emacs.app:
|
||||
|
||||
./build-emacs-for-osx --srgb
|
||||
./build-emacs-for-osx
|
||||
|
||||
Or for example if you want to build the `EMACS_PRETEST_24_0_91` tag, run:
|
||||
|
||||
./build-emacs-for-osx --srgb EMACS_PRETEST_24_0_91
|
||||
./build-emacs-for-osx EMACS_PRETEST_24_0_91
|
||||
|
||||
Resulting applications are saved to the `builds` directory in a bzip2
|
||||
compressed tarball.
|
||||
|
||||
@@ -46,7 +46,7 @@ end
|
||||
def patches(opts = {})
|
||||
p = []
|
||||
|
||||
if !opts[:no_fullscreen]
|
||||
if opts[:fullscreen]
|
||||
p << 'https://raw.github.com/gist/1012927'
|
||||
end
|
||||
|
||||
@@ -63,18 +63,20 @@ end
|
||||
#
|
||||
|
||||
def parse_options
|
||||
options = {}
|
||||
options = {:fullscreen => true, :srgb => true}
|
||||
|
||||
OptionParser.new do |opts|
|
||||
opts.banner = "Usage: ./build-emacs-for-osx [options] [branch/tag/sha]"
|
||||
|
||||
opts.on('--srgb', "Include sRGB patch.") do
|
||||
options[:srgb] = true
|
||||
opts.on("--no-fullscreen", "Don't include fullscreen patch.") do
|
||||
options[:fullscreen] = false
|
||||
end
|
||||
|
||||
opts.on("--no-fullscreen", "Don't include fullscreen patch.") do
|
||||
options[:no_fullscreen] = true
|
||||
opts.on('--no-srgb', "Don't include sRGB patch.") do
|
||||
options[:srgb] = false
|
||||
end
|
||||
|
||||
opts.on("--srgb", "Option deprecated - sRGB patch is applied by default.")
|
||||
end.parse!
|
||||
|
||||
options
|
||||
|
||||
Reference in New Issue
Block a user