From 5fd15869dff8f3794a3c2eb6f9365293b1493020 Mon Sep 17 00:00:00 2001 From: tipaul Date: Tue, 18 Mar 2003 14:17:56 +0000 Subject: [PATCH] /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 --- koha-tmpl/index.html | 14 ++++---------- koha-tmpl/intranet.html | 12 ++++++++++++ koha-tmpl/opac.html | 12 ++++++++++++ misc/buildrelease | 7 +++---- 4 files changed, 31 insertions(+), 14 deletions(-) create mode 100644 koha-tmpl/intranet.html create mode 100644 koha-tmpl/opac.html diff --git a/koha-tmpl/index.html b/koha-tmpl/index.html index d2f098a55f..5194d5b5a8 100644 --- a/koha-tmpl/index.html +++ b/koha-tmpl/index.html @@ -1,12 +1,6 @@ - - - - - - -
- -
+ +Intranet +OPAC - + \ No newline at end of file diff --git a/koha-tmpl/intranet.html b/koha-tmpl/intranet.html new file mode 100644 index 0000000000..d2f098a55f --- /dev/null +++ b/koha-tmpl/intranet.html @@ -0,0 +1,12 @@ + + + + + + + +
+ +
+ + diff --git a/koha-tmpl/opac.html b/koha-tmpl/opac.html new file mode 100644 index 0000000000..8de851715d --- /dev/null +++ b/koha-tmpl/opac.html @@ -0,0 +1,12 @@ + + + + + + + +
+ +
+ + diff --git a/misc/buildrelease b/misc/buildrelease index 6d432e9899..61c1b667fb 100644 --- a/misc/buildrelease +++ b/misc/buildrelease @@ -117,7 +117,6 @@ while () { } } - 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