Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/update_version.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by toshinagata1964, Sat Sep 3 06:22:57 2011 UTC revision 66 by toshinagata1964, Sun May 8 09:08:24 2016 UTC
# Line 14  year = t.year Line 14  year = t.year
14  month = t.month  month = t.month
15  day = t.day  day = t.day
16  d = sprintf("%04d%02d%02d", year, month, day)  d = sprintf("%04d%02d%02d", year, month, day)
17  if date != d  # if date != d
18    File.open("Version", "w") { |fp|  #   File.open("Version", "w") { |fp|
19      fp.print "version = \"#{version}\"\n"  #     fp.print "version = \"#{version}\"\n"
20      fp.print "date = \"#{d}\"\n"  #     fp.print "date = \"#{d}\"\n"
21    }  #   }
22  end  # end
23  build = "build " + d  build = "build " + d
24  verstr = "v#{ver} #{build}"  verstr = "v#{ver} #{build}"
25  yrange = "2000-#{year}"  yrange = "2000-#{year}"

Legend:
Removed from v.4  
changed lines
  Added in v.66

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26