fa12929cfb1c53e3264891c17f00ec57c81b62e7
[onis.git] / contrib / systemwide-patch / systemwide-patch.diff
1 diff -ur trunk/onis systemwide-patch/onis
2 --- trunk/onis  2005-04-23 10:33:14.000000000 +0200
3 +++ systemwide-patch/onis       2005-04-23 10:33:48.000000000 +0200
4 @@ -15,10 +15,6 @@
5  
6  BEGIN
7  {
8 -       if ($0 =~ m#^(.*)[/\\]#) { chdir ($1); }
9 -
10 -       unshift (@INC, 'lib');
11 -
12         # 0x0010   Language (make not-translated lines red/yellow)
13         # 0x0020   Parser (dropped lines)
14         # 0x0040   Parser (time information)
15 @@ -72,13 +68,13 @@
16  print STDERR $/, __FILE__, ': $Id: onis 103 2005-04-23 08:17:50Z octo $' if ($::DEBUG);
17  
18  parse_argv (@ARGV);
19 -read_config (get_config ('config') ? get_config ('config') : 'onis.conf');
20 +read_config (get_config ('config') ? get_config ('config') : '/etc/onis/onis.conf');
21  read_config (scalar get_config ('theme')) if (get_config ('theme'));
22  
23  my $output = get_config ('output');
24  if (!$output)
25  {
26 -       $output = "reports/onis.html";
27 +       $output = "onis.html";
28  }
29  
30  foreach ('Core', get_config ('plugin'))
31 diff -ur trunk/onis.conf systemwide-patch/onis.conf
32 --- trunk/onis.conf     2005-04-23 10:33:18.000000000 +0200
33 +++ systemwide-patch/onis.conf  2005-04-23 10:35:16.000000000 +0200
34 @@ -158,7 +158,7 @@
35  
36  # Sets the directory in which the storage file(s) should be kept. This is used
37  # by ``Dbm'' and ``Storable''.
38 -storage_dir: "var/";
39 +storage_dir: "~/.onis/data";
40  
41  
42  #
43 @@ -177,9 +177,9 @@
44  # Style settings. If no theme is given this might result in a lot of very
45  # weird errors, so better set one ;)
46  # Valid themes as of onis 0.7.0: light, liner, dark
47 -theme: "themes/light.theme";
48 +theme: "/usr/share/onis/themes/light.theme";
49  
50  # Read translations from this file.
51  # One of:
52  # english.lang german.lang norwegian.lang spanish.lang swedish.lang
53 -language_file: "lang/english.lang";
54 +language_file: "/usr/share/onis/lang/english.lang";