Package: mencal
Version: 2.3-4
Severity: wishlist
Tags: patch upstream

Hi,

I wrote a patch for mencal to support having ~/.mencalrc read
by default if such file exists.

Patch attached.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (50, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages mencal depends on:
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 

-- no debconf information

-- 
Toni Timonen "toni dot timonen at iki dot fi"
NP Solutions Ltd
Helsinki University of Technology
Department of Engineering Physics and Mathematics
diff -rub orig/mencal-2.3/mencal mencal-2.3/mencal
--- orig/mencal-2.3/mencal      2003-07-17 08:53:15.000000000 +0300
+++ mencal-2.3/mencal   2005-06-08 11:23:39.000000000 +0300
@@ -229,6 +229,13 @@
   );
   my @confs=();
 
+  #There exists a config file
+  $_ = "$ENV{HOME}/.mencalrc";
+  if (-f $_ && -r $_) {
+    push(@confs,Conf->new());
+    $confs[$#confs]->parsefile($_);
+  }
+
   for(my $i=0; $i<=$#ARGV; $i++) {
     foreach($ARGV[$i]) {
       /^(-h|--help)$/ && &Main::usage;

Attachment: signature.asc
Description: Digital signature

Reply via email to