Skip to content

Commit

Permalink
/koha-tmpl/ is now the documentroot for opac and intranet pages (reme…
Browse files Browse the repository at this point in the history
…mber 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
  • Loading branch information
tipaul committed Mar 18, 2003
1 parent 01a01f9 commit 5fd1586
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 14 deletions.
14 changes: 4 additions & 10 deletions koha-tmpl/index.html
@@ -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 changes: 12 additions & 0 deletions koha-tmpl/intranet.html
@@ -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 changes: 12 additions & 0 deletions koha-tmpl/opac.html
@@ -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>
7 changes: 3 additions & 4 deletions misc/buildrelease
Expand Up @@ -117,7 +117,6 @@ while (<CVSLOG>) {
}
}


my $releaseversion='';
my $currentversion='';

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5fd1586

Please sign in to comment.