From 1db1a6e8411bed7ce63e2e717f55ee07f08b6157 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 13 Nov 2014 10:24:45 -0500 Subject: qi, (quick install) header update (also rbuild) --- qi | 37 ++++++++----------------------------- 1 file changed, 8 insertions(+), 29 deletions(-) (limited to 'qi') diff --git a/qi b/qi index 6bfddf62..3b4ba501 100755 --- a/qi +++ b/qi @@ -1,41 +1,20 @@ #!/usr/bin/env ruby =begin - Common Rakefile, Rantfile installer for SiSU - softlink Rakefile and Rantfile to this file - * Homepage: - - * Download: - - Copyright (C) 2007 Ralph Amissah - - * License: LGPL - GNU Lesser General Public License - [same license as Rant provided within the Rant package] +** Description: - * Ralph Amissah - Ralph Amissah - - Rake is a Ruby build program by Jim Weirich - * Rake may be downloaded and installed from: - +** Homepage: + +** Download: - Rant is a Ruby build program by Stefan Lang - * Rant may be downloaded and installed from: - +** Copyright: (C) 2007 - 2015 Ralph Amissah - Notes on use: - [if rake is preferred and installed] - rake -T - [if rant is preferred and installed] - rant -T +** License: - SiSU can also be Setup/Installation using: - * Minero Aoki's setup.rb, provided along with SiSU, or +** Ralph Amissah + Ralph Amissah =end -#%% produce a makefile suitable for the target platform -#require 'mkmf' -#create_makefile("sisu") #% manual settings, edit/update as required (note current default settings are obtained from sisu version yml file) begin require 'thor' -- cgit v1.2.3 From 4db4dcc886b85bf9db43d66025452fb33c94a9dd Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 26 Nov 2014 09:12:11 -0500 Subject: c&d: project dir structure, libs moved under new branch names * libs & version files under new branch names: current & develop * previously under branch version numbers (v5|v6) * version .yml files moved * associated adjustments made as required, notably to: bin/sisu se* qi* (file headers); breakage potential, testing required * [on dir names, want release to (alphabetically) precede next/development, considered (cur|dev) (current|(dev|development|progress|next)) (stable|unstable), alpha sorting fail (release|(next|develop))] --- qi | 53 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 21 deletions(-) (limited to 'qi') diff --git a/qi b/qi index 3b4ba501..2d8d878b 100755 --- a/qi +++ b/qi @@ -38,7 +38,7 @@ require 'yaml' module SiSUconf class Configure < Thor class_option :verbose, :type => :boolean - desc 'setup --all --bin --lib --conf --data --alt', + desc 'setup --all --bin --lib --conf --data --alt --dryrun', 'setup sisu' options \ :all => :boolean, @@ -49,7 +49,8 @@ module SiSUconf :share => :boolean, :man => :boolean, :vim => :boolean, - :alt => :boolean + :alt => :boolean, + :dryrun => :boolean def setup unless options.length >= 1 \ and not (options[:bin] \ @@ -61,72 +62,73 @@ module SiSUconf or options[:vim]) puts 'setup --all --bin --lib --conf --data --share --man --vim' end + act=(options[:dryrun]) ? (:dryrun) : (:action) if not options[:alt] if options[:all] \ or options[:bin] exclude_files=['sisugem'] - Install.setup_find_create('bin',Project_details.dir.bin,exclude_files) \ + Install.setup_find_create('bin',Project_details.dir.bin,exclude_files,act) \ if File.directory?('bin') end if options[:all] \ or options[:lib] - Install.setup_find_create('lib',Project_details.dir.lib) \ + Install.setup_find_create('lib',Project_details.dir.lib,act) \ if File.directory?('lib') end if options[:all] \ or options[:conf] - Install.setup_find_create('conf',Project_details.dir.conf) \ + Install.setup_find_create('conf',Project_details.dir.conf,act) \ if File.directory?('conf') end if options[:all] \ or options[:data] - Install.setup_find_create('data',Project_details.dir.data) \ + Install.setup_find_create('data',Project_details.dir.data,act) \ if File.directory?('data') end if options[:all] \ or options[:share] - Install.setup_find_create('data/sisu',Project_details.dir.share) \ + Install.setup_find_create('data/sisu',Project_details.dir.share,act) \ if File.directory?('data/sisu') end if options[:all] \ or options[:man] - Install.setup_find_create('man',Project_details.dir.man) \ + Install.setup_find_create('man',Project_details.dir.man,act) \ if File.directory?('man') end if options[:all] \ or options[:vim] - Install.setup_find_create('data/vim',Project_details.dir.vim) \ + Install.setup_find_create('data/vim',Project_details.dir.vim,act) \ if File.directory?('data/vim') end else if options[:all] \ or options[:bin] - Install.setup_find_cp_r('bin',Project_details.dir.bin) \ + Install.setup_find_cp_r('bin',Project_details.dir.bin,act) \ if File.directory?('bin') end if options[:all] \ or options[:bin] - Install.setup_find_cp_r('lib',Project_details.dir.lib) \ + Install.setup_find_cp_r('lib',Project_details.dir.lib,act) \ if File.directory?('lib') end if options[:all] \ or options[:conf] - Install.setup_find_cp_r('conf',Project_details.dir.conf) \ + Install.setup_find_cp_r('conf',Project_details.dir.conf,act) \ if File.directory?('conf') end if options[:all] \ or options[:data] - Install.setup_find_cp_r('data',Project_details.dir.data) \ + Install.setup_find_cp_r('data',Project_details.dir.data,act) \ if File.directory?('data') end if options[:all] \ or options[:share] - Install.setup_find_cp_r('data/sisu',Project_details.dir.share) \ + Install.setup_find_cp_r('data/sisu',Project_details.dir.share,act) \ if File.directory?('data/sisu') # end if options[:all] \ or options[:man] - Install.setup_find_cp_r('man',Project_details.dir.man) \ + Install.setup_find_cp_r('man',Project_details.dir.man,act) \ if File.directory?('man') end #if options[:all] \ @@ -193,17 +195,26 @@ module SiSUconf desc 'pkg', 'package maintenance tasks, of no general interest (maintainer specific for package maintainer\'s convenience)' options \ - :update_version=> :boolean, + :open_version=> :boolean, + :version_and_tag_for_release=> :boolean, :tip => :boolean def pkg if options[:tip] Package.sequence end - if options[:update_version] - Version_info::Update.update_stable - Version_info::Update.update_unstable - puts "\n" + Version_info::Update.changelog_header_stable - puts "\n" + Version_info::Update.changelog_header_unstable + if options[:open_version] + Version_info::Update.update_stable(:pre_release) + Version_info::Update.update_unstable(:pre_release) + Version_info::Update.changelog_header_stable_pre_release + Version_info::Update.changelog_header_unstable_pre_release + Version_info::Update.changelog_header_commit(:pre_release) + end + if options[:version_and_tag_for_release] + Version_info::Update.update_stable(:release) + Version_info::Update.update_unstable(:release) + Version_info::Update.changelog_header_stable + Version_info::Update.changelog_header_unstable + Version_info::Update.changelog_header_commit_tag_upstream(:release) end if options.length == 0 system("#{$called_as} help pkg") -- cgit v1.2.3 From 28097d451a253f00ff6f346cc1bf7b0bbde15b7a Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 9 Jan 2015 11:22:26 -0500 Subject: sisu po4a ruby thor Rakefile equivalent (& cosmetic edit to qi) --- qi | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 69 insertions(+), 27 deletions(-) (limited to 'qi') diff --git a/qi b/qi index 2d8d878b..3165a814 100755 --- a/qi +++ b/qi @@ -67,69 +67,109 @@ module SiSUconf if options[:all] \ or options[:bin] exclude_files=['sisugem'] - Install.setup_find_create('bin',Project_details.dir.bin,exclude_files,act) \ - if File.directory?('bin') + Install.setup_find_create( + 'bin', + Project_details.dir.bin, + exclude_files, + act + ) if File.directory?('bin') end if options[:all] \ or options[:lib] - Install.setup_find_create('lib',Project_details.dir.lib,act) \ - if File.directory?('lib') + Install.setup_find_create( + 'lib', + Project_details.dir.lib, + act + ) if File.directory?('lib') end if options[:all] \ or options[:conf] - Install.setup_find_create('conf',Project_details.dir.conf,act) \ - if File.directory?('conf') + Install.setup_find_create( + 'conf', + Project_details.dir.conf, + act + ) if File.directory?('conf') end if options[:all] \ or options[:data] - Install.setup_find_create('data',Project_details.dir.data,act) \ - if File.directory?('data') + Install.setup_find_create( + 'data', + Project_details.dir.data, + act + ) if File.directory?('data') end if options[:all] \ or options[:share] - Install.setup_find_create('data/sisu',Project_details.dir.share,act) \ - if File.directory?('data/sisu') + Install.setup_find_create( + 'data/sisu', + Project_details.dir.share, + act + ) if File.directory?('data/sisu') end if options[:all] \ or options[:man] - Install.setup_find_create('man',Project_details.dir.man,act) \ - if File.directory?('man') + Install.setup_find_create( + 'man', + Project_details.dir.man, + act + ) if File.directory?('man') end if options[:all] \ or options[:vim] - Install.setup_find_create('data/vim',Project_details.dir.vim,act) \ - if File.directory?('data/vim') + Install.setup_find_create( + 'data/vim', + Project_details.dir.vim, + act + ) if File.directory?('data/vim') end else if options[:all] \ or options[:bin] - Install.setup_find_cp_r('bin',Project_details.dir.bin,act) \ - if File.directory?('bin') + Install.setup_find_cp_r( + 'bin', + Project_details.dir.bin, + act + ) if File.directory?('bin') end if options[:all] \ or options[:bin] - Install.setup_find_cp_r('lib',Project_details.dir.lib,act) \ - if File.directory?('lib') + Install.setup_find_cp_r( + 'lib', + Project_details.dir.lib, + act + ) if File.directory?('lib') end if options[:all] \ or options[:conf] - Install.setup_find_cp_r('conf',Project_details.dir.conf,act) \ - if File.directory?('conf') + Install.setup_find_cp_r( + 'conf', + Project_details.dir.conf, + act + ) if File.directory?('conf') end if options[:all] \ or options[:data] - Install.setup_find_cp_r('data',Project_details.dir.data,act) \ - if File.directory?('data') + Install.setup_find_cp_r( + 'data', + Project_details.dir.data, + act + ) if File.directory?('data') end if options[:all] \ or options[:share] - Install.setup_find_cp_r('data/sisu',Project_details.dir.share,act) \ - if File.directory?('data/sisu') # + Install.setup_find_cp_r( + 'data/sisu', + Project_details.dir.share, + act + ) if File.directory?('data/sisu') # end if options[:all] \ or options[:man] - Install.setup_find_cp_r('man',Project_details.dir.man,act) \ - if File.directory?('man') + Install.setup_find_cp_r( + 'man', + Project_details.dir.man, + act + ) if File.directory?('man') end #if options[:all] \ #or options[:vim] @@ -193,7 +233,9 @@ module SiSUconf end end desc 'pkg', - 'package maintenance tasks, of no general interest (maintainer specific for package maintainer\'s convenience)' + 'package maintenance tasks, ' \ + + 'of no general interest ' \ + + '(maintainer specific for package maintainer\'s convenience)' options \ :open_version=> :boolean, :version_and_tag_for_release=> :boolean, -- cgit v1.2.3 From 490b37178dc413e8a3280dd2619be51d9280ce52 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 10 Apr 2015 17:46:22 -0400 Subject: install related, qi (quick install) & rake --- qi | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'qi') diff --git a/qi b/qi index 3165a814..ef67bbf6 100755 --- a/qi +++ b/qi @@ -50,7 +50,8 @@ module SiSUconf :man => :boolean, :vim => :boolean, :alt => :boolean, - :dryrun => :boolean + :dryrun => :boolean, + :is => :boolean def setup unless options.length >= 1 \ and not (options[:bin] \ @@ -63,6 +64,10 @@ module SiSUconf puts 'setup --all --bin --lib --conf --data --share --man --vim' end act=(options[:dryrun]) ? (:dryrun) : (:action) + if options[:is] + puts Version_info.version_number_info_stable + puts Version_info.version_number_info_unstable + end if not options[:alt] if options[:all] \ or options[:bin] @@ -185,9 +190,13 @@ module SiSUconf :unstable => :boolean, :create => :boolean, :build => :boolean, - :install => :boolean + :install => :boolean, + :is => :boolean def gem if options[:unstable] + if options[:is] + puts Version_info.version_number_info_unstable + end if options[:create] Gemspecs::Current.create_unstable #Gemspecs::Next.create_unstable @@ -209,6 +218,9 @@ module SiSUconf end if options[:stable] \ or not options[:unstable] + if options[:is] + puts Version_info.version_number_info_stable + end if options[:create] Gemspecs::Current.create_stable #Gemspecs::Current.create_unstable @@ -239,8 +251,13 @@ module SiSUconf options \ :open_version=> :boolean, :version_and_tag_for_release=> :boolean, - :tip => :boolean + :tip => :boolean, + :is => :boolean def pkg + if options[:is] + puts Version_info.version_number_info_stable + puts Version_info.version_number_info_unstable + end if options[:tip] Package.sequence end -- cgit v1.2.3