diff options
| author | Ralph Amissah <ralph@amissah.com> | 2015-04-21 13:16:50 -0400 | 
|---|---|---|
| committer | Ralph Amissah <ralph@amissah.com> | 2015-04-25 13:46:02 -0400 | 
| commit | 2f5043b905e0286586e0aa9812e36391c783efde (patch) | |
| tree | 213aab65868bb8ce6bf5b411405d5d5f39ec23b5 /setup/qi_libs.rb | |
| parent | sisu.org git download info (diff) | |
qi libs, minor, remove debian specific url
Diffstat (limited to 'setup/qi_libs.rb')
| -rw-r--r-- | setup/qi_libs.rb | 27 | 
1 files changed, 6 insertions, 21 deletions
| diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb index 9d11cecd..cad5e68a 100644 --- a/setup/qi_libs.rb +++ b/setup/qi_libs.rb @@ -64,7 +64,7 @@ module Project_details    end    def self.version      stamp={} -    v="#{dir.pwd}/conf/sisu/version.yml" +    v="#{dir.pwd}/data/sisu/version.yml"      if File.exist?(v)        stamp=YAML::load(File::open(v))        stamp[:version] @@ -199,9 +199,9 @@ module Install  end  module Version_info    def self.contents(vi,rel=:release) -    release=if rel ==:pre_release then '_pre_rel' -    else                               '' -    end +    release=rel ==:pre_release \ +    ? '_pre_rel' +    : ''      <<-WOK  ---  :project: #{vi[:project]} @@ -361,10 +361,8 @@ proceed? }        <<-WOK  ** #{vn}.orig.tar.xz (#{vi[:date]}:#{vi[:date_stamp].gsub(/20\d\dw/,'')})  http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_#{vn} -http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/debian/sisu_#{vn}-1  http://www.jus.uio.no/sisu/pkg/src/sisu_#{vn}.orig.tar.xz    sisu_#{vn}.orig.tar.xz -  sisu_#{vn}-1.dsc        WOK      end      def self.changelog_header_release(filename,ch,vi) @@ -424,10 +422,8 @@ proceed? }        <<-WOK  ** #{vn}.orig.tar.xz (Open commit window: #{vi[:date]}; Pre-Release))  http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_#{vn} -http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/debian/sisu_#{vn}-1  http://www.jus.uio.no/sisu/pkg/src/sisu_#{vn}.orig.tar.xz    sisu_#{vn}.orig.tar.xz -  sisu_#{vn}-1.dsc        WOK      end      def self.changelog_header_pre_release_write(filename,ch) @@ -441,7 +437,7 @@ proceed? }          if File.writable?(fn)            changelog_arr_current = IO.readlines(fn)            changelog_arr_next=changelog_arr_current.each.map do |line| -            changelog_arr_next <<=if line =~/^--- HEAD ---$/ +            if line =~/^--- HEAD ---$/                line << ("\n" + ch)              else line              end @@ -533,18 +529,7 @@ module GitExtractTaggedVersionBuild        puts commands        begin          system(commands) -      rescue # shell error not caught by ruby, using rake -        #install_branches=[] -        #install_branches << 'gem_create_build_stable' \ -        #  if options[:stable] -        #install_branches << 'gem_create_build_unstable' \ -        #  if options[:unstable] -        #commands =%{git checkout #{ver} && } -        #install_branches.each do |install_branch| -        #  commands += %{rake #{install_branch};} -        #end -        #puts commands -        #system(commands) +      rescue        end      rescue      ensure | 
