[l10n-russian CVS] shadow/man Rakefile, 1.2, 1.3 glue_dot.rb, NONE, 1.1

Yuri Kozlov yuray-guest at alioth.debian.org
Thu Nov 3 09:40:25 UTC 2005


Update of /cvsroot/l10n-russian/shadow/man
In directory haydn:/tmp/cvs-serv25814

Modified Files:
	Rakefile 
Added Files:
	glue_dot.rb 
Log Message:
for xml postprocessing

--- NEW FILE: glue_dot.rb ---
prev = gets
exit if prev == nil
while gets
  if $_ =~ /\s+\./ then
    s = $_.gsub(/\s+\./, '.')
    if s.index('.') == 0 then
      prev = prev.rstrip + s
    else
      prev = prev + s
    end
    #puts prev
  else
    puts prev
    prev = $_
  end
end
puts prev

Index: Rakefile
===================================================================
RCS file: /cvsroot/l10n-russian/shadow/man/Rakefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Rakefile	2 Nov 2005 09:04:03 -0000	1.2
+++ Rakefile	3 Nov 2005 09:40:23 -0000	1.3
@@ -1,18 +1,16 @@
 require 'rake/clean'
 
+RuManDir = 'shadow-man-ru'
 # для авто уборки файлов при вызове clean
-CLEAN.include('man/*','*.xml')
-directory 'man'
+CLEAN.include(RuManDir+'/*', '*.xml')
+
+#автосоздание каталога по требованию
+directory RuManDir
 
 EngXML = FileList['eng-man/*.xml']
 RuPO = FileList.new
 RuMAN = FileList.new
 
-#rule '.po' => ['.xml'] do |t|
-  # -d -- debug
-#  sh "po4a-gettextize -f xml -m #{t.source} -L UTF-8 -p #{t.name}"
-#end
-
 EngXML.each do |eng|
   next if File.size(eng) == 0
   fn = File.basename(eng.ext('po'))
@@ -25,7 +23,7 @@
     end
   end
 
-  fm = 'man/'+fn.ext('')
+  fm = RuManDir+'/'+fn.ext('')
   #fm = fm.ext('')
   RuMAN.include(fm)
   file fm => [fn] do |t|
@@ -49,3 +47,6 @@
 task :update_po => RuPO
 task :update_man => RuMAN
 
+task :tarball do
+  sh "tar -jcf shadow-man-ru.tar.bz2 #{RuManDir}"
+end




More information about the l10n-russian-cvs-commits mailing list