summaryrefslogtreecommitdiff
path: root/newver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'newver.rb')
-rwxr-xr-xnewver.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/newver.rb b/newver.rb
deleted file mode 100755
index 884e873ba4c..00000000000
--- a/newver.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-#! /usr/local/bin/ruby
-f = open("version.h", "r")
-f.gets()
-f.close
-
-if $_ =~ /"(\d+)\.(\d+)"/;
- f = open("version.h", "w")
- i = $2.to_i
- if $ARGV[0] == "-f"
- i += 1
- end
- date = Time.now.strftime("%y/%m/%d")
- printf("ruby - version %d.%0d (%s)\n", $1, i, date)
- printf(f, "#define RUBY_VERSION \"%d.%0d\"\n", $1, i)
- printf(f, "#define VERSION_DATE \"%s\"\n", date)
- f.close
-else
- printf("match error - %s\n", $_)
-end