From 1790031ba720b0389c5371ba8444a3fdb37ad511 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 6 Sep 2009 17:44:27 +0000 Subject: [PATCH] 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. --- bin/keep-latest | 1 + bin/wanna-build | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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, -- 2.39.2