diff --git a/README.md b/README.md index eeab949..dbe1e44 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/build-emacs-for-osx b/build-emacs-for-osx index c9a8262..9f615be 100755 --- a/build-emacs-for-osx +++ b/build-emacs-for-osx @@ -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