File: gen-yaws-generated.in

package info (click to toggle)
yaws 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,012 kB
  • sloc: erlang: 42,153; sh: 2,501; javascript: 1,459; makefile: 968; ansic: 890; lisp: 79; python: 34; xml: 12; php: 1
file content (20 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# Used by src/Makefile and scripts/rebar-pre-script to create the
# yaws_generated.erl file

set -e

if [ x"@YAWS_DETERMINISTIC_BUILD@" = x ]; then
    subst_vardir="${VARDIR}"
    subst_etcdir="${ETCDIR}"
else
    subst_vardir=undefined
    subst_etcdir=undefined
fi
cat yaws_generated.template                           | \
    ../scripts/Subst %VSN%          "${YAWS_VSN}"     | \
    ../scripts/Subst %VARDIR%       "${subst_vardir}" | \
    ../scripts/Subst %ETCDIR%       "${subst_etcdir}"

exit 0