/koha-tmpl/ is now the documentroot for opac and intranet pages (remember koha-html is deprecated and should be removed very soon)

the index.html shows just 2 links : 1 to intranet.html, the other to opac.html.
during buildrelease, intranet.html is moved to intranet document root and renamed to index.html, same thing for opac.html with opac documentroot.
with this trick, you can have a "cvs" install, and a clean "official" install
This commit is contained in:
tipaul 2003-03-18 14:17:56 +00:00
parent 01a01f9b6d
commit 5fd15869df
4 changed files with 31 additions and 14 deletions

View file

@ -1,12 +1,6 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=/cgi-bin/koha/mainpage.pl">
</head>
<body bgcolor=white>
<table border=0 width=100% height=100%>
<tr><td align=center valign=center>
<img src=/images/kohasplash.jpg>
</td></tr>
</table>
<body>
<a href="intranet.html">Intranet</a>
<a href="opac.html">OPAC</a>
</body>
</html>
</html>

12
koha-tmpl/intranet.html Normal file
View file

@ -0,0 +1,12 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=/cgi-bin/koha/mainpage.pl">
</head>
<body bgcolor=white>
<table border=0 width=100% height=100%>
<tr><td align=center valign=center>
<img src=/images/kohasplash.jpg>
</td></tr>
</table>
</body>
</html>

12
koha-tmpl/opac.html Normal file
View file

@ -0,0 +1,12 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=/cgi-bin/koha/opac-main.pl">
</head>
<body bgcolor=white>
<table border=0 width="100%" height="100%">
<tr><td align=center valign=center>
<img src=/images/kohasplash.jpg>
</td></tr>
</table>
</body>
</html>

View file

@ -117,7 +117,6 @@ while (<CVSLOG>) {
}
}
my $releaseversion='';
my $currentversion='';
@ -245,9 +244,6 @@ Tagging koha with tag R_$tagname
# MOVE files to /tmp and build tar.gz
#----------------------------------------------------------
my $rootdir="/tmp/koha-".$releaseversion;
system("rm -rf $rootdir");
mkdir ($rootdir, 0700);
@ -325,6 +321,9 @@ system("find $rootdir/intranet-cgi -name '*.pl' -exec chmod a+x \\{\\} \\;");
# FIXME: "cp -a" is GNU-ism. It is not portable.
system('cp', '-a', "$rootdir/intranet-cgi/koha-tmpl/opac-tmpl", "$rootdir/opac-html");
system('cp', '-a', "$rootdir/intranet-cgi/koha-tmpl/intranet-tmpl", "$rootdir/intranet-html");
#copy index files (they are just redirections to main.pl)
system("cp $rootdir/intranet-cgi/koha-tmpl/opac.html","$rootdir/opac-html/index.html");
system("cp $rootdir/intranet-cgi/koha-tmpl/intranet.html","$rootdir/intranet-html/index.html");
system('rm', '-rf', "$rootdir/intranet-cgi/koha-tmpl");
# Remove extraneous files from opac-html