Commit Graph

25 Commits

Author SHA1 Message Date
Markus Reiter 15171687a1 Move back documentation and developer scripts. (#23920) 2016-08-19 19:21:44 +02:00
Anastasia Sulyagina 0ec06e9a95 Cask core code moved to Homebrew (#23852) 2016-08-19 16:53:18 +02:00
Trey Harris 31d4bf8ce3 Refactor {develop,production}_brew_cask
Almost all of these two scripts are identical. Refactor out the common
bits, saving over 60 lines of repetition.

Right now this is handled by moving all the logic into "develop_brew_cask"
and symlinking "production_brew_cask".

This will be followed by another patch to add a "manage_brew_cask_links"
command to do the same with sub-commands, e.g.,
  manage_brew_cask_links status
returns "production" or "develop",
  manage_brew_cask_links production
does the same as production_brew_cask,
  manage_brew_cask_links develop
does the same as develop_brew_cask, etc. At that point, I'd like to
rename the script "manage_brew_cask_links" and have the two present
names be symlinked to that.

This was motivated by (besides DRY) getting tired of having to
manually check symlinks to see which state I was currently in.
2014-09-14 17:24:39 -04:00
Roland Walker 95c4a0cb42 improve warn construct 2014-05-22 10:29:26 -04:00
Paul Hinze f54eaf7082 update all references to new caskroom org home
global replace of:
  'phinze/homebrew-cask' -> 'caskroom/homebrew-cask'
  'phinze/cask' -> 'caskroom/cask'
  'phinze/homebrew-testcasks' -> 'caskroom/homebrew-testcasks'

and various other specific places that needed updates

<3 the homebrew-cask community!
2014-05-03 10:29:17 -05:00
Roland Walker 400433be20 Adapt to homebrew's move of the tap directory
Closes #4035. Closes #4029. Closes #4026.
2014-04-26 09:42:16 -04:00
Roland Walker 8d9ae53217 quoting/stdization/full-paths 2014-02-07 11:01:50 -05:00
Roland Walker a7f1bc6693 doubledash hygiene for external cmd: rm 2014-01-31 13:05:09 -05:00
Roland Walker e5a16f90e9 doubledash hygiene for external cmd: stat 2014-01-31 13:03:50 -05:00
Roland Walker 07889426b2 doubledash hygiene for external cmd: ls 2014-01-31 13:02:15 -05:00
Roland Walker f4623843b7 doubledash hygiene for external cmd: mv 2014-01-31 13:01:18 -05:00
Roland Walker 47377071f2 devscript: docs 2014-01-31 12:33:31 -05:00
Roland Walker da16653e54 devscript: move feedback msgs inside functions 2014-01-31 12:33:31 -05:00
Roland Walker bf24e32ea0 devscript: factor out not_inside_homebrew
sanity check
2014-01-31 12:33:30 -05:00
Roland Walker abe29d1b51 devscript: hoist configurable global variables 2014-01-31 12:33:30 -05:00
Roland Walker bf19f020d6 devscript: comments 2014-01-31 12:33:30 -05:00
Roland Walker bc650b8079 devscript: quote/expansion nit
for clarity. I think this is special-cased anyway
2014-01-31 12:33:29 -05:00
Roland Walker 73c891885f devscript: error msg consistency 2014-01-31 12:33:29 -05:00
Roland Walker 96eb76f676 devscript: all large scripts use die/warn idiom 2014-01-31 12:33:29 -05:00
Roland Walker c62cc5a88f devscript: full path to pwd 2014-01-31 12:33:29 -05:00
Roland Walker 958fee530e devscript: line-terminations, continuations 2014-01-31 12:29:34 -05:00
Roland Walker 6774a61838 devscripts: general hardening of shell scripts
- full paths to utils
- $() construct
- quoting
- prefer double square brackets
2014-01-29 09:02:02 -05:00
Roland Walker 596c9ac613 refactor bash scripts into functions
add some comments
2014-01-23 10:08:06 -05:00
Roland Walker e60605eb0e document and improve developer scripts
- markdown docs were intentionally held back from prior PR to avoid
  merge conflict
- add -help usage notes to all scripts
- add sanity check against user running develop_brew_cask inside
  /usr/local/Library/Taps/phinze-cask/developer/bin and better explain that
- note everywhere that "brew update" is not safe when in "development mode"
2014-01-20 09:38:17 -05:00
Roland Walker 9446d09584 Add developer scripts
Automates the procedure documented in CONTRIBUTING.md
2014-01-13 15:59:39 -05:00