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>
This commit is contained in:
parent
70c92fe77e
commit
c61ed26092
|
@ -10,4 +10,5 @@
|
|||
/Makefile
|
||||
/Makefile.in
|
||||
/missing
|
||||
/website.tar.gz
|
||||
/website.tar.gz
|
||||
/site/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
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