Use Michel's install-lib for installation of SUnet

This commit is contained in:
mainzelm 2004-02-02 10:26:26 +00:00
parent b65323b81b
commit 7668a290dc
2 changed files with 20 additions and 6 deletions

View File

@ -1,16 +1,18 @@
SHELL = /bin/sh
version_id = 2.0
version_id = 2.1
distname = sunet-$(version_id)
distdir = /tmp
DISTFILES = COPYING README RELEASE \
Makefile packages.scm \
pkg-def.scm install-lib-module.scm install-lib.scm install-pkg \
Makefile scheme/packages.scm \
start-web-server \
httpd/*.scm ftpd/*.scm lib/*.scm \
doc/man.pdf doc/html \
scheme/httpd/*.scm scheme/httpd/surflets/*.scm \
scheme/ftpd/*.scm scheme/lib/*.scm \
doc/pdf/sunet.pdf doc/html \
doc/latex/*.tex doc/latex/*.sty doc/latex/*.t2p doc/latex/*.hdir \
web-server
@ -20,8 +22,11 @@ sunet-$(version_id).tar.gz:
dist:
cd doc/latex && $(MAKE) html
cd doc/latex && $(MAKE) man.pdf && cp -p man.pdf ..
cd web-server/root/htdocs && ln -sf ../../../doc/html sunet-manual
cd doc/latex && $(MAKE) man.pdf
cd web-server/root/htdocs
mkdir -p doc/pdf
cp doc/latex/man.pdf doc/pdf/sunet.pdf
mv doc/html/man.html doc/html/index.html
distname=$(distname) && \
distfile=$(distdir)/$$distname.tar.gz && \
if [ -d $(distdir) ] && \

9
pkg-def.scm Normal file
View File

@ -0,0 +1,9 @@
(define-package "sunet" (2 1) ()
(install-directory-contents "scheme" 'scheme)
(install-directory "web-server" 'misc-shared)
(install-directory-contents "doc" 'doc)
(let ((doc-dir (get-directory 'doc #t))
(misc-shared-dir (get-directory 'misc-shared #t)))
(create-symlink (string-append doc-dir "/html")
(string-append misc-shared-dir "/web-server/root/htdocs/sunet-manual")))
)