ddts-script v 0.2.2
Bonjour,
changelog :
version 0.2.2
- add: `$base_dir' variable in `.ddts_script'
thanks to Lorenzo Cappelletti for this
- change: manpage for setup file
- bug fix:
- add: create `$temp_dir' if it doesn't exist
- add: missing concatenation in `parse_review'
- change: typo in `changelog'
La rustine est attachée, le script complet toujours au même endroit :
http://perso.wanadoo.fr/nico.bertol/ddts/ddts-script.txt
Un nouvel exemple de fichier de config. est joint, mais vous n'avez rien
à modifier dans le vôtre a priori.
Nicolas
--
--- ddts-script_0.2.1.txt Fri Nov 30 09:17:28 2001
+++ ddts-script_0.2.2.txt Sat Dec 1 22:32:19 2001
@@ -138,6 +138,9 @@
This is your F<~/.ddts-script> file, it MUST contain the following variables:
+
+directories (must be different from each other):
+
=over 4
=item I<$tr_dir>, directory for translations
@@ -148,6 +151,12 @@
=item I<$temp_dir>, directory for temporary files
+= back
+
+file extensions (must be different from each other):
+
+=over 4
+
=item I<$todo_e>, extension for descriptions to work on
=item I<$tr_e>, extension for translated descriptions
@@ -164,6 +173,12 @@
=item I<$ok_e>, extension for descriptions which passed the review process
+=back
+
+others:
+
+=over 4
+
=item I<$comment>, comment string for review, a space character will be added to this string
=item I<$debug>, verbosity level (see below)
@@ -211,10 +226,10 @@
=cut
-my $version = "0.2.1";
+my $version = "0.2.2";
# Test if configuration as been made
-foreach ($tr_dir, $bug_dir, $rev_dir) {
+foreach ($tr_dir, $bug_dir, $rev_dir, $temp_dir) {
if (! -d $_) {
mkdir ($_, 755) || die "Is the script configured?\n"
."Can't create `$_': $!";
@@ -733,12 +748,14 @@
if ($diff[0] =~ /^$comment-/) {
$diff[0] =~ s/^$comment-//;
$diff[1] =~ s/^$comment\+//;
- $todo = "$comment-Description-$langage\: ".$diff[0]."\n"
- ."$comment+Description-$langage\: ".$diff[1]."\n";
+ $todo .= "$comment-Description-$langage\: ".$diff[0]."\n"
+ ."$comment+Description-$langage\: ".$diff[1]."\n";
shift @diff;
shift @diff;
+ } else {
+ $todo .= "Description-$langage\: ";
}
- $todo = join ("\n", @diff)."\n";
+ $todo .= join ("\n", @diff)."\n";
}
}
}
my $base_dir = "$ENV{HOME}/l10n/ddts"; # base directory for ddts stuff
$tr_dir = "$base_dir/tr"; # directory for translations
$rev_dir = "$base_dir/rev"; # directory for reviews
$bug_dir = "$base_dir/bug"; # directory for bugs
$temp_dir = "$base_dir/tmp"; # temporary directory
$comment = ">>"; # comment string a space will be added
$todo_e = "todo"; # file extention for files to review/translate
$sent_e = "sent"; # file extention for sent files
$tr_e = "tr"; # file extention for translated files
$rev_e = "rev"; # file extention for reviewed files
$bug_e = "bug"; # file extention for bug report files
$fix_e = "fix"; # file extention for bugs fixed files
$old_e = "old"; # file extention for old files
$ok_e = "ok"; # file extention for descriptions which passed the review process
$debug = 1; # level of verbosity 0..5, 9
$mail_addr = 'my name <me@my.isp.org>'; # mail address
$mail_from = $mail_addr; # mail address for ddts answers
$mail_self = "yes"; # send mails to myself also if set to `yes'
$mail_enc = "8bit"; # mail encoding for mime
$mail_charset = "iso-8859-1"; # mail charset for mime
$editor="vim %s"; # editor must contain `%s'
Reply to: