diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2014-08-08 12:57:20 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2014-08-08 12:57:20 +0200 |
commit | 23cff9eb85f3f58d47e424cf8f60956e0e200082 (patch) | |
tree | 8b7a3bd8c0d6f3d7cc6f55f9bbe0e57a0045def6 /tools | |
parent | [3427] Changes after review (diff) | |
download | kea-23cff9eb85f3f58d47e424cf8f60956e0e200082.tar.xz kea-23cff9eb85f3f58d47e424cf8f60956e0e200082.zip |
[3427] path_replacer.sh added
Diffstat (limited to 'tools')
-rw-r--r-- | tools/path_replacer.sh.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/path_replacer.sh.in b/tools/path_replacer.sh.in new file mode 100644 index 0000000000..0ab9b11e54 --- /dev/null +++ b/tools/path_replacer.sh.in @@ -0,0 +1,18 @@ +#!/bin/sh + +# +# This script replaces @prefix@ and @localstatedir@ variables with their +# actual content. Usage: +# +# ./path_replacer.sh input-file.in output-file + +prefix=@prefix@ +sysconfdir=@sysconfdir@ +localstatedir=@localstatedir@ + +echo "Replacing \@localstatedir\@ with ${localstatedir}" + +echo "Input file: $1" +echo "Output file: $2" + +sed -e "s+\@localstatedir\@+${localstatedir}+g; s+\@prefix@+${prefix}+g; s+\@sysconfdir@+${sysconfdir}+g" $1 > $2 |