From: Kurt Roeckx Date: Sun, 6 Sep 2009 17:44:27 +0000 (+0000) Subject: Make it use paths directly to our files. X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=commitdiff_plain;h=1790031ba720b0389c5371ba8444a3fdb37ad511 Make it use paths directly to our files. We used to have symlinks in /usr/share/perl5/. Now we just set the include path to use our dir. /etc/wanna-build.conf just included our config file, now use it directly. This should probably get changed at some point, if we ever want to package it. --- diff --git a/bin/keep-latest b/bin/keep-latest index f1383e1..1aedc49 100755 --- a/bin/keep-latest +++ b/bin/keep-latest @@ -3,6 +3,7 @@ use strict; use warnings; +use lib '/org/wanna-build/bin'; use WannaBuild; # for version compare if (!@ARGV) { diff --git a/bin/wanna-build b/bin/wanna-build index f929b46..c04c258 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -25,7 +25,7 @@ $basedir ||= "/var/lib/debbuild"; $dbbase ||= "build-db"; $transactlog ||= "transactions.log"; $mailprog ||= "/usr/sbin/sendmail"; -require "/etc/wanna-build.conf"; +require "/org/wanna-build/etc/wanna-build.conf"; die "$conf::basedir is not a directory\n" if ! -d $conf::basedir; die "dbbase is empty\n" if ! $dbbase; die "transactlog is empty\n" if ! $transactlog; @@ -39,6 +39,7 @@ use POSIX; use FileHandle; use File::Copy; use DBI; +use lib '/org/wanna-build/bin'; use WannaBuild; our ($verbose, $mail_logs, $list_order, $list_state,