Adding upstream version 1.2.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
3a3aa427d7
commit
e7ed09875d
58 changed files with 3068 additions and 0 deletions
18
Guardfile
Normal file
18
Guardfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
guard :shell do
|
||||
watch /^selfupdate\/.+\.go$/ do |m|
|
||||
puts "#{Time.now}: #{m[0]}"
|
||||
case m[0]
|
||||
when /_test\.go$/
|
||||
parent = File.dirname m[0]
|
||||
sources = Dir["#{parent}/*.go"].reject{|p| p.end_with? '_test.go'}.join(' ')
|
||||
system "go test -v -short #{m[0]} #{sources}"
|
||||
else
|
||||
system 'go build ./selfupdate/'
|
||||
end
|
||||
end
|
||||
|
||||
watch /^cmd\/selfupdate-example\/.+\.go$/ do |m|
|
||||
puts "#{Time.now}: #{m[0]}"
|
||||
system 'go build ./cmd/selfupdate-example/'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue