Update $FindBin paths for both console and conmux-registry to include BIN/../lib and BIN/lib
Similar to how the script 'conmux' finds Conmux.pm do the same for console and conmux-registry. This is necessary because in a true install the library is located in BASE_INSTALL/lib not BASE_INSTALL/bin. In the autotest directory (where lots of people use the binary directly). Conmux.pm is located where the console binary is located. Signed-off-by: Scott Zawalski <[email protected]> --- autotest/conmux/conmux-registry 2010-02-17 13:16:23.000000000 -0800 +++ autotest/conmux/conmux-registry 2010-02-17 13:16:23.000000000 -0800 @@ -22,6 +22,8 @@ # Find our internal libraries. use lib $FindBin::Bin; +use lib "$FindBin::Bin/../lib/"; +use lib "$FindBin::Bin/lib/"; use Conmux; our $P = 'conmux-registry'; --- autotest/conmux/console 2010-02-17 13:16:23.000000000 -0800 +++ autotest/conmux/console 2010-02-17 13:16:23.000000000 -0800 @@ -26,6 +26,8 @@ # Find our internal libraries. use lib $FindBin::Bin; +use lib "$FindBin::Bin/../lib/"; +use lib "$FindBin::Bin/lib/"; use Conmux; # Basic terminal handling. _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
