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