Re: modified translation-check
Martin Schulze wrote:
> Hi,
>
> while working on the banners I had the problem that compiling files
> always produced an error. This was due to the fact that the directory
> was present for english and german but not committed yet. The following
> patch to translation-check.wml should fix that but I'm not sure if I
> should commit it.
Actually this was not sufficient. I now found the other error that
I received:
finlandia!joey(pts/53):/home/project/Debian/CVS/webwml/english/zzzzzPRESS> make
wml -q -D CUR_YEAR=2001 -o UNDEFuEN:index.en.html@g+w index.wml
../../touch_translations.pl /home/project/Debian/CVS/webwml/english/zzzzzPRESS/index.wml en
/home/project/Debian/CVS/webwml/english/zzzzzPRESS/CVS/Entries: No such file or directory at ../../touch_translations.pl line 105.
make: *** [index.en.html] Error 2
> Please author it and comment on it:
Please also comment on this change which is basically the same:
Index: touch_translations.pl
===================================================================
RCS file: /cvs/webwml/webwml/touch_translations.pl,v
retrieving revision 1.3
diff -u -r1.3 touch_translations.pl
--- touch_translations.pl 2000/11/23 02:19:44 1.3
+++ touch_translations.pl 2001/04/05 20:08:03
@@ -102,12 +102,15 @@
# Get the revision of the original file
my $origrev;
-open FILE, "${path}/CVS/Entries" or die "${path}/CVS/Entries: $!";
-while (<FILE>) {
+if (open (FILE, "${path}/CVS/Entries")) {
+ while (<FILE>) {
if (m,^/$file.wml/([^/]+)/,) {
$origrev = $1;
last;
}
+ }
+} else {
+ $origrev="1.1";
}
foreach $lang (@langs) {
Regards,
Joey
--
Those who don't understand Unix are condemned to reinvent it, poorly.
Please always Cc to me when replying to me on the lists.
Reply to: