Use Michel's install-lib for installation of SUnet
This commit is contained in:
parent
b65323b81b
commit
7668a290dc
17
Makefile
17
Makefile
|
@ -1,16 +1,18 @@
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
version_id = 2.0
|
version_id = 2.1
|
||||||
|
|
||||||
distname = sunet-$(version_id)
|
distname = sunet-$(version_id)
|
||||||
|
|
||||||
distdir = /tmp
|
distdir = /tmp
|
||||||
|
|
||||||
DISTFILES = COPYING README RELEASE \
|
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 \
|
start-web-server \
|
||||||
httpd/*.scm ftpd/*.scm lib/*.scm \
|
scheme/httpd/*.scm scheme/httpd/surflets/*.scm \
|
||||||
doc/man.pdf doc/html \
|
scheme/ftpd/*.scm scheme/lib/*.scm \
|
||||||
|
doc/pdf/sunet.pdf doc/html \
|
||||||
doc/latex/*.tex doc/latex/*.sty doc/latex/*.t2p doc/latex/*.hdir \
|
doc/latex/*.tex doc/latex/*.sty doc/latex/*.t2p doc/latex/*.hdir \
|
||||||
web-server
|
web-server
|
||||||
|
|
||||||
|
@ -20,8 +22,11 @@ sunet-$(version_id).tar.gz:
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
cd doc/latex && $(MAKE) html
|
cd doc/latex && $(MAKE) html
|
||||||
cd doc/latex && $(MAKE) man.pdf && cp -p man.pdf ..
|
cd doc/latex && $(MAKE) man.pdf
|
||||||
cd web-server/root/htdocs && ln -sf ../../../doc/html sunet-manual
|
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) && \
|
distname=$(distname) && \
|
||||||
distfile=$(distdir)/$$distname.tar.gz && \
|
distfile=$(distdir)/$$distname.tar.gz && \
|
||||||
if [ -d $(distdir) ] && \
|
if [ -d $(distdir) ] && \
|
||||||
|
|
|
@ -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")))
|
||||||
|
)
|
Loading…
Reference in New Issue