diff --git a/buildrelease b/buildrelease index a45e1ac7b0..9e51d090bd 100644 --- a/buildrelease +++ b/buildrelease @@ -310,12 +310,11 @@ system("rm -f $rootdir/intranet-cgi/SendMessages"); system("rm -f $rootdir/intranet-cgi/buildrelease"); system("rm -f $rootdir/intranet-cgi/database.mysql"); system("rm -f $rootdir/intranet-cgi/installer-lite.pl"); -# FIXME: The following two lines look suspicious -#system("rm -f $rootdir/intranet-cgi/koha-1.2.0.tar.gz"); -#system("rm -f $rootdir/intranet-cgi/rel-1-2"); -system("rm -f $rootdir/intranet-cgi/testKoha.pl"); system("rm -rf $rootdir/intranet-cgi/html-template"); -system("rm -rf $rootdir/intranet-cgi/t"); + +# Move test scripts to scripts dir +system("mv $rootdir/intranet-cgi/testKoha.pl $rootdir/scripts"); +system("mv $rootdir/intranet-cgi/t $rootdir/scripts"); # Set all .pl scripts executable system("find $rootdir/intranet-cgi -name '*.pl' -exec chmod a+x \\{\\} \\;"); diff --git a/testKoha.pl b/testKoha.pl index b8cdabd265..556b44047a 100644 --- a/testKoha.pl +++ b/testKoha.pl @@ -2,6 +2,15 @@ # $Id$ +BEGIN { + my $intranetdir=`grep intranetdir /etc/koha.conf`; + chomp $intranetdir; + $intranetdir=~s/\s*intranetdir\s*=\s*//i; + $::modulesdir=$intranetdir."/modules"; +} + +use lib $::modulesdir; + use strict; use Test::Harness; @@ -24,6 +33,9 @@ runtests (@tests); exit; # $Log$ +# Revision 1.1.2.10 2002/10/29 20:22:38 tonnesen +# buildrelease now puts the test scripts in $intranetdir/scripts/t/ +# # Revision 1.1.2.9 2002/10/29 19:47:57 tonnesen # New test script for circulation module. # diff --git a/updater/updatedatabase b/updater/updatedatabase index 07ced61a54..8e5a7780b2 100755 --- a/updater/updatedatabase +++ b/updater/updatedatabase @@ -16,13 +16,13 @@ # Set C4 module directory BEGIN { - $::intranetdir=`grep intranetdir /etc/koha.conf`; - chomp $::intranetdir; - $::intranetdir=~s/\s*intranetdir\s*=\s*//i; - print "$::intranetdir\n"; + $intranetdir=`grep intranetdir /etc/koha.conf`; + chomp $intranetdir; + $intranetdir=~s/\s*intranetdir\s*=\s*//i; + $::modulesdir=$intranetdir."/modules"; } -use lib $::intranetdir."/modules"; +use lib $::modulesdir; use strict; @@ -415,6 +415,9 @@ $dbh->disconnect; exit; # $Log$ +# Revision 1.4.2.25 2002/10/29 20:22:43 tonnesen +# buildrelease now puts the test scripts in $intranetdir/scripts/t/ +# # Revision 1.4.2.24 2002/10/25 18:52:47 tonnesen # Moved bulkmracimport.pl to scripts directory (through buildrelease script) # Made bulkmarcimport.pl and updatedatabase able to run from the command line