Fix homebrew build.
This commit is contained in:
		
							parent
							
								
									58f07d41a7
								
							
						
					
					
						commit
						8cd80fcf83
					
				|  | @ -18,4 +18,4 @@ README | ||||||
| README.html | README.html | ||||||
| /md2roff | /md2roff | ||||||
| /unifi-poller_manual.html | /unifi-poller_manual.html | ||||||
| /homebrew-repo | /homebrew-mugs | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ install: | ||||||
| - rvm $brew_ruby do gem install --no-document fpm | - rvm $brew_ruby do gem install --no-document fpm | ||||||
| script: | script: | ||||||
| - rvm $brew_ruby do make release | - rvm $brew_ruby do make release | ||||||
| # get deploy key for golift/homebrew-repo. | # get deploy key for golift/homebrew-mugs. | ||||||
| after_success: | after_success: | ||||||
|   - | |   - | | ||||||
|       declare -r SSH_FILE="$(mktemp -u $HOME/.ssh/XXXXX)" |       declare -r SSH_FILE="$(mktemp -u $HOME/.ssh/XXXXX)" | ||||||
|  |  | ||||||
|  | @ -5,13 +5,13 @@ | ||||||
| make unifi-poller.rb | make unifi-poller.rb | ||||||
| VERSION=$(grep -E '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2) | VERSION=$(grep -E '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2) | ||||||
| 
 | 
 | ||||||
| rm -rf homebrew-repo | rm -rf homebrew-mugs | ||||||
| git config --global user.email "unifi@auto.releaser" | git config --global user.email "unifi@auto.releaser" | ||||||
| git config --global user.name "unifi-auto-releaser" | git config --global user.name "unifi-auto-releaser" | ||||||
| git clone git@github.com:golift/homebrew-repo.git | git clone git@github.com:golift/homebrew-mugs.git | ||||||
| 
 | 
 | ||||||
| cp unifi-poller.rb homebrew-repo/Formula | cp unifi-poller.rb homebrew-mugs/Formula | ||||||
| pushd homebrew-repo | pushd homebrew-mugs | ||||||
| echo "Showing diff:" | echo "Showing diff:" | ||||||
| git diff | git diff | ||||||
| git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb | git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb | ||||||
|  |  | ||||||
|  | @ -27,7 +27,7 @@ class UnifiPoller < Formula | ||||||
| 
 | 
 | ||||||
|    plist_options :startup => true |    plist_options :startup => true | ||||||
| 
 | 
 | ||||||
|    def plist; <<-EOS.undent |    def plist; <<-EOS | ||||||
|      <?xml version="1.0" encoding="UTF-8"?> |      <?xml version="1.0" encoding="UTF-8"?> | ||||||
|      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||||||
|      <plist version="1.0"> |      <plist version="1.0"> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue