From b04ac0d958e0f9a440e0209b1e75683a40c771b6 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 26 Sep 2007 09:57:54 +0100 Subject: document gen rantfile, use relative path, (cleaning) --- data/doc/sisu/sisu_markup_samples/sisu_manual/Rantfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'data/doc') diff --git a/data/doc/sisu/sisu_markup_samples/sisu_manual/Rantfile b/data/doc/sisu/sisu_markup_samples/sisu_manual/Rantfile index 269c2751..cf356746 100644 --- a/data/doc/sisu/sisu_markup_samples/sisu_manual/Rantfile +++ b/data/doc/sisu/sisu_markup_samples/sisu_manual/Rantfile @@ -100,8 +100,6 @@ end @proj[:rant]="Rantfile for the darcs-buildpackage debianisation of #{@proj[:name]}" @dir[:proj]='sisu' @dir[:proj_eg]='sisu-examples' -@dir_sisu_description='/home/ralph/grotto/theatre/scribe/sisu/sisu-description/sisu' -@dir_sisu_document_samples='/home/ralph/grotto/theatre/scribe/sisu/sisu-document-samples/sisu' @dt=Date.today.to_s @t=Time.now day=if @t.day.to_s =~/^(\d)$/; "0#{$1}" @@ -158,9 +156,7 @@ def filelist_manpage files end def man_section(files_array,man_no='1') - path_man_sisu_output='/home/ralph/grotto/theatre/dbld/builds/sisu/sisu-doc/doc/manuals_generated/sisu_manual/man' - #path_man_sisu_output='~sisudocout/sisu_manual/man' - ##path_man_sisu_output='../../../manuals_generated/sisu_manual/man' + path_man_sisu_output='../../../../../../sisu-doc/doc/manuals_generated/sisu_manual/man' path_man_sisu_package='../../../../../man' files_array.each do |x| y=x.gsub(/(\S+?)\.1$/,"\\1.#{man_no}") @@ -197,7 +193,7 @@ def files_manpage files end def manual - system("sisu -CC") + system('sisu -CC') files_array_docs.each do |x| puts "sisu -3sS #{x}" system("sisu -3sS #{x}") @@ -206,7 +202,7 @@ end def manual_rsync file_array=files_array_docs puts file_array.join(' ') - system("sisu -CC") + system('sisu -CC') file_array.each do |x| puts "sisu -3sS #{x}; sisu -R #{x} &" system("sisu -3sS #{x}; sisu -R #{x} & ") @@ -214,7 +210,7 @@ def manual_rsync end def manpages puts files_manpage - system("sisu -iv #{files_manpage}") + system("sisu -i #{files_manpage}") end def search_update file_array=filelist_search.scan(/\S+/) @@ -226,13 +222,12 @@ end def search_update_sisu file_array=filelist_search_sisu.scan(/\S+/) file_array.each do |x| - puts %{sisu -Dv --update #{x}} + puts "sisu -Dv --update #{x}" system("sisu -Dv --update #{x}") end end def clean system("rm *._sst footnote_conversion_errors.txt .*.swp") - #system("rm footnote_conversion_errors.txt .*.swp") end def zap(filelist) system("sisu -Z #{filelist}") @@ -335,3 +330,6 @@ task :help do rant_help end __END__ +path_man_sisu_output='/home/ralph/grotto/theatre/dbld/builds/sisu/sisu-doc/doc/manuals_generated/sisu_manual/man' +path_man_sisu_output='~sisudocout/sisu_manual/man' +#path_man_sisu_output='../../../manuals_generated/sisu_manual/man' -- cgit v1.2.3