website-build: serve.sh: remove the need for random temporary directory.
Since we are migrating to haunt and that haunt builds the website in site/ we also use that. In addition that also simplifies the lighttpd configuration. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
parent
14167862d7
commit
c2b4c87fda
|
@ -11,3 +11,4 @@
|
|||
/Makefile.in
|
||||
/missing
|
||||
/website.tar.gz
|
||||
/site/**
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
server.bind = "localhost"
|
||||
server.port = LIGHTTPD_PORT
|
||||
server.document-root = "TMPDIR"
|
||||
server.document-root = var.CWD + "/site/"
|
||||
dir-listing.activate = "enable"
|
||||
index-file.names = ( "index.html" )
|
||||
mimetype.assign = (
|
||||
|
|
|
@ -37,13 +37,12 @@ if [ $# -eq 2 ] ; then
|
|||
lighttpd_port="$2"
|
||||
fi
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
mkdir -p "${tmpdir}/software/gnuboot/"
|
||||
destdir="site/software/gnuboot/"
|
||||
mkdir -p "${destdir}"
|
||||
|
||||
tar xf "${tarball}" -C "${tmpdir}/software/gnuboot/"
|
||||
tar xf "${tarball}" -C "${destdir}"
|
||||
|
||||
sed -e "s#TMPDIR#${tmpdir}#g" \
|
||||
-e "s#LIGHTTPD_PORT#${lighttpd_port}#g" \
|
||||
sed -e "s#LIGHTTPD_PORT#${lighttpd_port}#g" \
|
||||
"${basedir}/lighttpd.conf.tmpl" > \
|
||||
"${basedir}/lighttpd.conf"
|
||||
|
||||
|
|
Loading…
Reference in New Issue