forked from ruby-snmp/ruby-snmp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.rb
More file actions
33 lines (28 loc) · 654 Bytes
/
release.rb
File metadata and controls
33 lines (28 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
system "rake test"
exit if $? != 0
RELEASE="1.0.1"
TAG_CMD="svn copy svn+ssh://davehal@rubyforge.org/var/svn/snmplib/branches/branch-0.6.0 svn+ssh://davehal@rubyforge.org/var/svn/snmplib/tags/release-#{RELEASE} -m 'Tagging release #{RELEASE}'"
def check_svn_up
puts "Checking svn updated"
out = `svn up`
unless out =~ /At revision \d+\./
puts "svn up failed:"
puts out
exit(1)
end
end
def check_svn_st
puts "Checking svn committed"
out = `svn st`
out.each_line do |line|
unless line =~ /^\?/
puts "svn st failed:"
puts out
exit(1)
end
end
end
check_svn_up
check_svn_st
$VERBOSE=1
system TAG_CMD