[Koha-cvs] CVS: koha/misc/translator/po update.pl,1.1.2.4,1.1.2.5

Ambrose C. LI acli at users.sourceforge.net
Sun Jan 23 07:22:29 CET 2005


Update of /cvsroot/koha/koha/misc/translator/po
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18923

Modified Files:
      Tag: rel_2_2
	update.pl 
Log Message:
create fails if the pot file already exists


Index: update.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/po/Attic/update.pl,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -r1.1.2.4 -r1.1.2.5
*** update.pl	23 Jan 2005 05:16:15 -0000	1.1.2.4
--- update.pl	23 Jan 2005 06:22:26 -0000	1.1.2.5
***************
*** 48,51 ****
--- 48,52 ----
        #
        my $target = "po/${theme}_${module}" . ($pot_p? ".pot": "$lang.po");
+       rename($target, "$target~") if $pot_p;
        exec('./tmpl_process3.pl', ($pot_p? 'create': 'update'),
  	    '-i', "../../koha-tmpl/$module-tmpl/$theme/en/",





More information about the Koha-cvs mailing list