Re: Where can i download the latest trads (or trads.rb) from?

Sebastian Pipping <[email protected]>
Newsgroups gmane.linux.gentoo.documentation
Message-ID <[email protected]>
On 05/10/10 12:41, Camille Huot wrote:
> You can grab the trads release I downloaded before I patched it
> according to my needs:
> 
> http://files.cameuh.net/trads-200604071846.tgz

thanks!

i have attached the diff on trads.rb from my to your snapshot, if you're
curious.



sebastian
german--french--trads-rb.diff (text/plain, 2.7 KB)
diff --git a/rb/trads.rb b/rb/trads.rb
index 606a24a..db4510e 100755
--- a/rb/trads.rb
+++ b/rb/trads.rb
@@ -206,7 +206,7 @@ class TTrads
       return diff if diff and r1==diff[0][0] and r2==diff[0][1] # We have already done the diff
       
       # Get history log
-      cmd = "cd #{@ttrad.localcvs}; cvs -z0 log -r#{@sync.succ}:#{@rev} #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
+      cmd = "cd #{@ttrad.localcvs}; cvs -z3 log -r#{@sync.succ}:#{@rev} #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
       # Run cvs command
 # DEBUG begin
 #  read from local file cvs.log instead (no need to load actual cvs)
@@ -228,7 +228,7 @@ class TTrads
       end
       
       # Diff the revisions
-      cmd = "cd #{@ttrad.localcvs}; cvs -z0 diff -kk -t -U6 -r#{@sync} -r#{@rev} #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
+      cmd = "cd #{@ttrad.localcvs}; cvs -z3 diff -kk -t -U6 -r#{@sync} -r#{@rev} #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
       # Run cvs command
 # DEBUG begin
 #  read from local file cvs.log instead (no need to load actual cvs)
@@ -308,7 +308,7 @@ class TTrads
       return yxml[1] if yxml and rev == yxml[0]
       
       # Check the CVS status to see if our local copy of the CVS matches the requested revision
-      cmd = "cd #{@ttrad.localcvs}; cvs -z0 status #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
+      cmd = "cd #{@ttrad.localcvs}; cvs -z3 status #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
       # Run cvs command
       po, pe = runrun(cmd, @ttrad.log)
       raise "CVS was not happy!\n\n#{pe.join("\n")}" if pe.length>0
@@ -327,7 +327,7 @@ class TTrads
         # Therefore we use cvs -p -r{revision} and read the file from stdout
         @ttrad.log.info("Getting #{@localfilename} (#{rev}) from repository")
         # Run cvs command
-        cmd = "cd #{@ttrad.localcvs}; cvs -q -z0 update -p -r#{rev} #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
+        cmd = "cd #{@ttrad.localcvs}; cvs -q -z3 update -p -r#{rev} #{@path}/#{@ttrad.langfrom}/#{@subdir}#{@filename}"
         po, pe = runrun(cmd, @ttrad.log)
         raise "CVS was not happy!\n\n#{pe.join("\n")}" if pe.length > 0
         raise "Cannot download #{@localfilename} from CVS.\nMaybe you should try to update your CVS copy." if po.length < 1
@@ -956,7 +956,7 @@ class TTrads
     # If @genhtml contains anything, upload list of targets and our newly generated page
     if @genhtml != "" then
       flst = "#{@xmlfilename} #{@genxml.join(' ')} #{@genhtml.join(' ')} #{@targetList.join(' ')}".squeeze(" ")
-      stdo, stdr = runrun("scp -Cq #{flst}  #{@wwwdev}", @log)
+      stdo, stdr = runrun("scp -Cpq #{flst}  #{@wwwdev}", @log)
       raise "Could not upload files: #{stdr.join("\n")}" if stdr.length > 0
       flst.split
     else
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.