From 6ca446e0429658f3da6c2919408f41731d311b53 Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 14 Oct 2002 11:20:40 +0000 Subject: [PATCH] moving .kohaautoconf file to kohadir => help in release build without being root --- buildrelease | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/buildrelease b/buildrelease index 9bab7287ce..888173819f 100644 --- a/buildrelease +++ b/buildrelease @@ -4,8 +4,8 @@ my $kohadir=`pwd`; chomp $kohadir; my $kohahtmldir="/koha/koha/koha-html/"; -if (-e "/root/.kohaautobuild.conf") { - open C, "/root/.kohaautobuild.conf"; +if (-e "$kohadir/.kohaautobuild.conf") { + open C, "$kohadir/.kohaautobuild.conf"; while () { chomp; if (/kohadir=(.*)/) { @@ -44,7 +44,7 @@ if ($input) { $kohahtmldir=$input; } -open (C, ">/root/.kohaautobuild.conf"); +open (C, "> $kohadir/.kohaautobuild.conf") || die "unable to create kohaautobuild file"; print C qq| kohadir=$kohadir kohahtmldir=$kohahtmldir @@ -215,8 +215,8 @@ system("mv $rootdir/intranet-cgi/LICENSE $rootdir"); system("mv $rootdir/intranet-cgi/News $rootdir"); system("mv $rootdir/intranet-cgi/README $rootdir"); system("mv $rootdir/intranet-cgi/TODO $rootdir"); -system("mv $rootdir/intranet-cgi/installer.pl $rootdir"); -system("mv $rootdir/intranet-cgi/koha.upgrade $rootdir"); +system("mv $rootdir/intranet-cgi/installer.pl $rootdir"); +system("mv $rootdir/intranet-cgi/koha.upgrade $rootdir"); chmod 0770, "$rootdir/installer.pl"; chmod 0770, "$rootdir/koha.upgrade"; system("mv $rootdir/intranet-cgi/koha.conf $rootdir"); -- 2.39.5