summaryrefslogtreecommitdiffstats
path: root/doc/instdoc.sh.in
blob: 09d932ce878e6635911b2f58cd590dc2055a5532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh --
# shellcheck disable=SC2034

prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
mandir=@mandir@
srcdir=@srcdir@
datarootdir=@datarootdir@
docdir=@docdir@
includedir=@includedir@
top_srcdir=@top_srcdir@
top_builddir=..

SOURCE="$1"
TARGET="$2"


rm -f "$TARGET"

sed -e "s;/usr/local/bin/;$bindir/;g" 	 	\
    -e "s;/usr/local/doc/mutt/;$docdir/;g" 	\
    "$SOURCE" > $TARGET

chmod 644 "$TARGET"