1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: fixed new code upstream using part of old Juan Diaz's patch.
Author: Paulo Henrique de Lima Santana (phls) <phls@softwarelivre.org>
LastUpdate: 2016-12-26
Index: cadubi-1.3.3/cadubi
===================================================================
--- cadubi-1.3.3.orig/cadubi
+++ cadubi-1.3.3/cadubi
@@ -11,14 +11,15 @@ $VERSION = '1.3.3';
# kludge to make this easier (?) for package maintainers
# (sorry guys, i wrote this years before i had the remotest clue as to
# what the hell i was doing)
-use FindBin qw($Bin);
-$HELPFILE = "$Bin/help.txt";
+use FindBin qw($Script);
+$DOCSDIR = "/usr/share/$Script";
+$HELPFILE = "$DOCSDIR/help.txt";
# other stuff
$DEBUG = 0;
$CADUBI_VERSION = $VERSION;
use Term::ReadKey;
-use lib "$Bin/../lib";
+use lib "$Bin/lib";
# global variables
$ESC = "\x1b"; # our most important var
|