From e58fbdc6ec480010b1b2df81b835febedb8cd6df Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 00:15:40 -0400 Subject: version & changelog, open commit window --- data/doc/sisu/CHANGELOG_v7 | 3 +++ data/sisu/version.yml | 6 +++--- setup/sisu_version.rb | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v7 b/data/doc/sisu/CHANGELOG_v7 index f7568f01..ffc33cb0 100644 --- a/data/doc/sisu/CHANGELOG_v7 +++ b/data/doc/sisu/CHANGELOG_v7 @@ -20,6 +20,9 @@ Reverse Chronological: --- HEAD --- +* 7.1.1.orig.tar.xz (Open commit window: 2015-05-17; Pre-Release)) + http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.1 + * sisu_7.1.0.orig.tar.xz (2015-05-15:19/5) http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.0 diff --git a/data/sisu/version.yml b/data/sisu/version.yml index dfd82c65..d7209077 100644 --- a/data/sisu/version.yml +++ b/data/sisu/version.yml @@ -1,5 +1,5 @@ --- :project: SiSU -:version: 7.1.0 -:date_stamp: 2015w19/5 -:date: "2015-05-15" +:version: 7.1.1_pre_rel +:date_stamp: 2015w19/7 +:date: "2015-05-17" diff --git a/setup/sisu_version.rb b/setup/sisu_version.rb index b1d77053..106089d2 100644 --- a/setup/sisu_version.rb +++ b/setup/sisu_version.rb @@ -1,6 +1,6 @@ #% constants module SiSUversion - SiSU_version = '7.1.0' + SiSU_version = '7.1.1' end module Dev GPGpubKey = '1BB4B289' -- cgit v1.2.3 From 6217cf0e2999f37b22295adc0a47838d2240ee91 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 00:17:15 -0400 Subject: bin/sisu , install name check (stable & git versions) --- bin/sisu | 18 ++++++------------ data/doc/sisu/CHANGELOG_v7 | 2 ++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/bin/sisu b/bin/sisu index 6b18e592..011c1f4f 100755 --- a/bin/sisu +++ b/bin/sisu @@ -20,7 +20,7 @@ class Orient :full_path_to_sisu_bin_in_sisu_dir_tree elsif processing.sisu_runtime_path =~/\/gems\// \ and processing.sisu_runtime_path \ - =~ /\/sisu-(?:\d+|[a-z])\.(?:\d+|[a-z])\.(?:\d+|[a-z])\// + =~ processing.gem_regex :gem_install else :system_install @@ -43,7 +43,7 @@ class Orient %r{\bsisu$} end def gem_regex - %r{\/sisu-(?:\d+|[a-z])\.(?:\d+|[a-z])\.(?:\d+|[a-z])\/} + %r{\/sisu-[0-9]+\.[0-9]+\.[0-9]+(?:\.r[0-9]+\.g[0-9a-f]{7})?\/} end self end @@ -114,13 +114,7 @@ class Orient end end def sisu_this_lib - if processing.sisu_runtime_path =~/\/gems\// \ - and processing.sisu_runtime_path \ - =~ /\/sisu-(?:\d+|[a-z])\.(?:\d+|[a-z])\.(?:\d+|[a-z])\// - # gem sought - processing.sisu_runtime_path. - gsub(/\/bin\/sisu[a-z0-7_-]*$/,'/lib/sisu') - elsif (processing.called_as \ + if (processing.called_as \ !~ /^#{RbConfig::CONFIG['bindir']}\/sisu$/) # called off file system, project directory tree File.expand_path(processing.called_as). @@ -128,12 +122,12 @@ class Orient else # distro installation sisulib={ - vendorlib: RbConfig::CONFIG['vendordir'] + '/sisu', + vendorlib: RbConfig::CONFIG['vendorlibdir'] + '/sisu', sitelib: RbConfig::CONFIG['sitelibdir'] + '/sisu', } - if FileTest.directory?(sisulib[:sitelib]) # Arch Linux; Debian local + if FileTest.directory?(sisulib[:sitelib]) # local install sisulib[:sitelib] - elsif FileTest.directory?(sisulib[:vendorlib]) # Debian GNU Linux system + elsif FileTest.directory?(sisulib[:vendorlib]) # system install sisulib[:vendorlib] else 'sisu' # assume lib paths work end diff --git a/data/doc/sisu/CHANGELOG_v7 b/data/doc/sisu/CHANGELOG_v7 index ffc33cb0..81d27636 100644 --- a/data/doc/sisu/CHANGELOG_v7 +++ b/data/doc/sisu/CHANGELOG_v7 @@ -23,6 +23,8 @@ Reverse Chronological: * 7.1.1.orig.tar.xz (Open commit window: 2015-05-17; Pre-Release)) http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.1 + * bin/sisu, install name check (stable & git versions) + * sisu_7.1.0.orig.tar.xz (2015-05-15:19/5) http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.0 -- cgit v1.2.3 From 164ba294b6193d11f3ff5505f452ac0eb7e07cd1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 11:01:29 -0400 Subject: qi (quick install) gem install git version option --- data/doc/sisu/CHANGELOG_v7 | 2 ++ qi | 5 ++++- setup/qi_libs.rb | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v7 b/data/doc/sisu/CHANGELOG_v7 index 81d27636..9659015b 100644 --- a/data/doc/sisu/CHANGELOG_v7 +++ b/data/doc/sisu/CHANGELOG_v7 @@ -23,6 +23,8 @@ Reverse Chronological: * 7.1.1.orig.tar.xz (Open commit window: 2015-05-17; Pre-Release)) http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.1 + * qi (quick install) gem install git version option + * bin/sisu, install name check (stable & git versions) * sisu_7.1.0.orig.tar.xz (2015-05-15:19/5) diff --git a/qi b/qi index b2956876..24d383b6 100755 --- a/qi +++ b/qi @@ -243,7 +243,10 @@ module SiSUconf if options[:verbose] end if options[:install] - Gemspecs::Current.install_stable + version=(options[:git_version_number]) \ + ? :version_git + : :version_standard + Gemspecs::Current.install_stable(version) puts 'installed gem, version: stable' \ if options[:verbose] end diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb index 5f325302..e58547b1 100644 --- a/setup/qi_libs.rb +++ b/setup/qi_libs.rb @@ -651,8 +651,13 @@ end def self.build_stable Gemspecs.build(filename) end - def self.install_stable - Gemspecs.install(filename_stable) + def self.install_stable(version=:version_standard) + vi=Version_info::Current.setting_stable + filename=((version==:version_git) \ + && (Version_info.version_number_use(vi) != vi[:version_number])) \ + ? ('sisu-' + Version_info.version_number_use(vi) + '.gem') + : ('sisu-' + vi[:version_number] + '.gem') + Gemspecs.install(filename) end end end -- cgit v1.2.3 From 9979682ddbb658e7d0e4269109032b463d0d58ac Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 20:21:13 -0400 Subject: qi (quick install) gem install version --- setup/qi_libs.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb index e58547b1..aa3f7706 100644 --- a/setup/qi_libs.rb +++ b/setup/qi_libs.rb @@ -616,9 +616,9 @@ end def self.build(fn) system(%{ gem build #{fn}.gemspec }) end - def self.install(fn) + def self.install(vn) system(%{ - sudo gem install --local --no-document --verbose #{fn}.gem + sudo gem install --local --no-document --verbose sisu-#{vn}.gem }) end module Current @@ -653,11 +653,11 @@ end end def self.install_stable(version=:version_standard) vi=Version_info::Current.setting_stable - filename=((version==:version_git) \ + vn=((version==:version_git) \ && (Version_info.version_number_use(vi) != vi[:version_number])) \ - ? ('sisu-' + Version_info.version_number_use(vi) + '.gem') - : ('sisu-' + vi[:version_number] + '.gem') - Gemspecs.install(filename) + ? (Version_info.version_number_use(vi)) + : (vi[:version_number]) + Gemspecs.install(vn) end end end -- cgit v1.2.3 From d020a0bd7f94aae9546fd503789c66b4499c4792 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 20:22:55 -0400 Subject: bin/sisu juggle multiple install & run options --- bin/sisu | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/bin/sisu b/bin/sisu index 011c1f4f..7a69dc5d 100755 --- a/bin/sisu +++ b/bin/sisu @@ -20,7 +20,7 @@ class Orient :full_path_to_sisu_bin_in_sisu_dir_tree elsif processing.sisu_runtime_path =~/\/gems\// \ and processing.sisu_runtime_path \ - =~ processing.gem_regex + =~ /\/#{processing.gem_regex}\// :gem_install else :system_install @@ -43,7 +43,7 @@ class Orient %r{\bsisu$} end def gem_regex - %r{\/sisu-[0-9]+\.[0-9]+\.[0-9]+(?:\.r[0-9]+\.g[0-9a-f]{7})?\/} + %r{sisu-[0-9]+\.[0-9]+\.[0-9]+(?:\.r[0-9]+\.g[0-9a-f]{7})?} end self end @@ -109,12 +109,21 @@ class Orient File.expand_path(processing.called_as). sub(/\/bin\/sisu$/,'/data/sisu') when :set_path_gem - Gem::Specification.find_by_name("sisu").gem_dir + '/data/sisu' + Gem::Specification.find_by_name("sisu").gem_dir \ + + '/data/sisu' else nil end end def sisu_this_lib - if (processing.called_as \ + if not Gem::Specification.find_by_name("sisu").nil? \ + and processing.sisu_runtime_path =~/\/gems\// \ + and processing.sisu_runtime_path \ + =~ /\/#{processing.gem_regex}\// + # gem sought + processing.sisu_runtime_path. + gsub(/\/bin\/sisu[a-z0-9._-]*$/, + '/lib/sisu') + elsif (processing.called_as \ !~ /^#{RbConfig::CONFIG['bindir']}\/sisu$/) # called off file system, project directory tree File.expand_path(processing.called_as). -- cgit v1.2.3 From 5ccf158429e0269b22430d5cd174d89edc513810 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 23:07:16 -0400 Subject: qi pkg manage changelog --- data/doc/sisu/CHANGELOG_v7 | 2 +- setup/qi_libs.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v7 b/data/doc/sisu/CHANGELOG_v7 index 9659015b..e298abf7 100644 --- a/data/doc/sisu/CHANGELOG_v7 +++ b/data/doc/sisu/CHANGELOG_v7 @@ -20,7 +20,7 @@ Reverse Chronological: --- HEAD --- -* 7.1.1.orig.tar.xz (Open commit window: 2015-05-17; Pre-Release)) +* sisu_7.1.1.orig.tar.xz (Open commit window: 2015-05-17; Pre-Release)) http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.1 * qi (quick install) gem install git version option diff --git a/setup/qi_libs.rb b/setup/qi_libs.rb index aa3f7706..ec069fee 100644 --- a/setup/qi_libs.rb +++ b/setup/qi_libs.rb @@ -405,7 +405,7 @@ proceed? } changelog_arr_current = IO.readlines(fn) changelog_arr_next=changelog_arr_current.each.map do |line| if line =~/^\*\s+sisu_[0-9]+\.[0-9]+\.[0-9]+(?:_pre_rel)?\.orig\.tar\.xz \(Open commit window: [0-9]{4}-[0-9]{2}-[0-9]{2}; Pre-Release\)\)$/ - "** sisu_#{vi[:version]}.orig.tar.xz " \ + "* sisu_#{vi[:version]}.orig.tar.xz " \ + "(#{vi[:date]}:#{vi[:date_stamp].gsub(/20\d\dw/,'')})\n" else line end @@ -437,7 +437,7 @@ proceed? } def self.changelog_header_pre_release(vi) vn=version_number(vi) <<-WOK -* #{vn}.orig.tar.xz (Open commit window: #{vi[:date]}; Pre-Release)) +* sisu_#{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} WOK end -- cgit v1.2.3 From 4748a2eec383020a7615a8f62d0772edf149595c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 17 May 2015 23:08:33 -0400 Subject: version & changelog, tag for release --- data/doc/sisu/CHANGELOG_v7 | 2 +- data/sisu/version.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/doc/sisu/CHANGELOG_v7 b/data/doc/sisu/CHANGELOG_v7 index e298abf7..5d15cab7 100644 --- a/data/doc/sisu/CHANGELOG_v7 +++ b/data/doc/sisu/CHANGELOG_v7 @@ -20,7 +20,7 @@ Reverse Chronological: --- HEAD --- -* sisu_7.1.1.orig.tar.xz (Open commit window: 2015-05-17; Pre-Release)) +* sisu_7.1.1.orig.tar.xz (2015-05-17:19/7) http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_7.1.1 * qi (quick install) gem install git version option diff --git a/data/sisu/version.yml b/data/sisu/version.yml index d7209077..ae875481 100644 --- a/data/sisu/version.yml +++ b/data/sisu/version.yml @@ -1,5 +1,5 @@ --- :project: SiSU -:version: 7.1.1_pre_rel +:version: 7.1.1 :date_stamp: 2015w19/7 :date: "2015-05-17" -- cgit v1.2.3