@@ -27,3 +27,52 @@ snapshot:
27
27
name_template : " {{ incpatch .Version }}-next"
28
28
changelog :
29
29
skip : true
30
+ brews :
31
+ -
32
+ tap :
33
+ owner : gabrie30
34
+ name : homebrew-utils
35
+
36
+ # Optionally a branch can be provided.
37
+ # Defaults to the default repository branch.
38
+ branch : master
39
+
40
+ # The project name and current git tag are used in the format string.
41
+ commit_msg_template : " Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
42
+
43
+ homepage : " https://github.com/gabrie30/ghorg"
44
+
45
+ description : " Quickly clone an entire org/users repositories into one directory"
46
+
47
+ license : " Apache-2.0"
48
+
49
+ # Packages your package depends on.
50
+ dependencies :
51
+ - name : go
52
+
53
+ test : |
54
+ system "#{bin}/ghorg version"
55
+
56
+ # Custom install script for brew.
57
+ # Default is 'bin.install "program"'.
58
+ install : |
59
+ ENV["GOPATH"] = buildpath
60
+
61
+ bin_path = buildpath/"src/github.com/gabrie30/ghorg"
62
+ bin_path.install Dir["*"]
63
+ cd bin_path do
64
+ system "go", "build", "-o", bin/"ghorg", "."
65
+ end
66
+
67
+ post_install : |
68
+ ohai ""
69
+ ohai "***************************"
70
+ ohai "For examples on how to use ghorg see: https://github.com/gabrie30/ghorg/tree/master/examples"
71
+ ohai ""
72
+ ohai "Remember to set your $HOME/.config/ghorg/conf.yaml"
73
+ ohai ""
74
+ ohai "Here's all you need to do..."
75
+ ohai "1) mkdir -p $HOME/.config/ghorg"
76
+ ohai "2) curl https://raw.githubusercontent.com/gabrie30/ghorg/master/sample-conf.yaml > $HOME/.config/ghorg/conf.yaml"
77
+ ohai "***************************"
78
+ ohai ""
0 commit comments