Skip to content
Snippets Groups Projects
Commit c9b65fbd authored by Lyle Johnson's avatar Lyle Johnson
Browse files

Converted old *.in templates to proper ERb templates

parent 529dd065
No related branches found
No related tags found
No related merge requests found
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
<doap:release> <doap:release>
<doap:Version> <doap:Version>
<doap:branch>fox16</doap:branch> <doap:branch>fox16</doap:branch>
<doap:created>@@DATE@@</doap:created> <doap:created><%= Date.today %></doap:created>
<doap:revision>@@FXRUBY_VERSION@@</doap:revision> <doap:revision><%= FXRUBY_VERSION %></doap:revision>
</doap:Version> </doap:Version>
</doap:release> </doap:release>
......
...@@ -88,14 +88,14 @@ end ...@@ -88,14 +88,14 @@ end
# #
instMajor, instMinor, instLevel = installed_fox_version().split('.') instMajor, instMinor, instLevel = installed_fox_version().split('.')
thisMajor, thisMinor, thisLevel = "@@FOX_VERSION@@".split('.') thisMajor, thisMinor, thisLevel = "<%= FOX_VERSION %>".split('.')
expecting_stable_fox_release = ((thisMinor.to_i % 2) == 0) expecting_stable_fox_release = ((thisMinor.to_i % 2) == 0)
if expecting_stable_fox_release if expecting_stable_fox_release
if (instMinor != thisMinor) if (instMinor != thisMinor)
puts "" puts ""
puts " ********************************************************" puts " ********************************************************"
puts " * This version of FXRuby (@@FXRUBY_VERSION@@) must be built against" puts " * This version of FXRuby (<%= FXRUBY_VERSION %>) must be built against"
puts " * one of the stable releases of FOX, but it appears that" puts " * one of the stable releases of FOX, but it appears that"
puts " * you have a development version of FOX (version #{installed_fox_version})" puts " * you have a development version of FOX (version #{installed_fox_version})"
puts " * installed instead. Please download and install one of" puts " * installed instead. Please download and install one of"
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
[Setup] [Setup]
AppName=FXRuby AppName=FXRuby
AppVerName=FXRuby @@FXRUBY_VERSION@@ AppVerName=FXRuby <%= FXRUBY_VERSION %>
AppPublisherURL=@@FXRUBY_HOME_URL@@ AppPublisherURL=<%= FXRUBY_HOME_URL %>
AppSupportURL=@@FXRUBY_HOME_URL@@ AppSupportURL=<%= FXRUBY_HOME_URL %>
AppUpdatesURL=@@FXRUBY_HOME_URL@@ AppUpdatesURL=<%= FXRUBY_HOME_URL %>
DefaultDirName=C:\ruby DefaultDirName=C:\ruby
DefaultGroupName=FXRuby DefaultGroupName=FXRuby
AllowNoIcons=no AllowNoIcons=no
LicenseFile=LICENSE LicenseFile=LICENSE
InfoBeforeFile=README.win32.txt InfoBeforeFile=README.win32.txt
OutputDir=. OutputDir=.
OutputBaseFilename=FXRuby-@@FXRUBY_VERSION@@-@@RUBYVER@@ OutputBaseFilename=FXRuby-<%= FXRUBY_VERSION %>-<%= RUBYVER %>
[Files] [Files]
; readme files ; readme files
...@@ -28,9 +28,9 @@ Source: "tests\README"; DestDir: "{app}\doc\FXRuby\tests"; Flags: ignoreversion ...@@ -28,9 +28,9 @@ Source: "tests\README"; DestDir: "{app}\doc\FXRuby\tests"; Flags: ignoreversion
Source: "tests\*.rb"; DestDir: "{app}\doc\FXRuby\tests"; Flags: ignoreversion Source: "tests\*.rb"; DestDir: "{app}\doc\FXRuby\tests"; Flags: ignoreversion
Source: "tests\*.ps"; DestDir: "{app}\doc\FXRuby\tests"; Flags: ignoreversion Source: "tests\*.ps"; DestDir: "{app}\doc\FXRuby\tests"; Flags: ignoreversion
; main extension shared library ; main extension shared library
Source: "ext\fox16\fox16.so"; DestDir: "{app}\lib\ruby\site_ruby\@@RUBY_VERSION@@\@@TARGET@@"; Flags: ignoreversion Source: "ext\fox16\fox16.so"; DestDir: "{app}\lib\ruby\site_ruby\<%= RUBY_VERSION %>\<%= TARGET %>; Flags: ignoreversion
; library files ; library files
Source: "lib\fox16\*.rb"; DestDir: "{app}\lib\ruby\site_ruby\@@RUBY_VERSION@@\fox16"; Flags: ignoreversion Source: "lib\fox16\*.rb"; DestDir: "{app}\lib\ruby\site_ruby\<%= RUBY_VERSION %>\fox16"; Flags: ignoreversion
; samples ; samples
Source: "examples\README"; DestDir: "{app}\samples\FXRuby"; Flags: ignoreversion Source: "examples\README"; DestDir: "{app}\samples\FXRuby"; Flags: ignoreversion
Source: "examples\babelfish.rb"; DestDir: "{app}\samples\FXRuby"; DestName: "babelfish.rbw"; Flags: ignoreversion Source: "examples\babelfish.rb"; DestDir: "{app}\samples\FXRuby"; DestName: "babelfish.rbw"; Flags: ignoreversion
......
...@@ -73,7 +73,7 @@ def do_upload(fxruby_version) ...@@ -73,7 +73,7 @@ def do_upload(fxruby_version)
end end
if __FILE__ == $0 if __FILE__ == $0
fxruby_version = "@@FXRUBY_VERSION@@" fxruby_version = "<%= FXRUBY_VERSION %>"
untar(fxruby_version) untar(fxruby_version)
iss_filename, dir = copy_installer_script(fxruby_version) iss_filename, dir = copy_installer_script(fxruby_version)
Dir.chdir(dir) Dir.chdir(dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment