update/gc: set traps after cd to project dir
[girocco.git] / make-apache-conf.sh
blob748b57e41dfd50402ec0c8a7eaebc8ecb1b952f5
1 #!/bin/sh
3 # This script uses the current values of Girocco::Config to
4 # convert apache.conf.in into apache.conf.
6 # It is run automatically by "make" or "make apache.conf" but
7 # may be run separately if desired.
9 set -e
11 . ./shlib.sh
13 config_options='admin basedir certsdir cgiroot httpdnsname reporoot webroot'
15 cmd="sed < apache.conf.in > apache.conf -e '/^##/d'"
16 for option in $config_options; do
17 cmd="$cmd -e \"s#@@$option@@#\$cfg_$option#g\""
18 done
19 eval "$cmd"