src/bin/dhcp6/tests/test_data_files_config.h
src/bin/dhcp6/tests/test_libraries.h
src/bin/keactrl/keactrl
- src/bin/keactrl/kea.conf
src/bin/keactrl/keactrl.conf
src/bin/keactrl/Makefile
src/bin/keactrl/tests/keactrl_tests.sh
src/lib/util/threads/tests/Makefile
src/lib/util/unittests/Makefile
src/Makefile
+ tools/path_replacer.sh
tests/Makefile
tests/tools/Makefile
tests/tools/perfdhcp/Makefile
chmod +x src/lib/log/tests/logger_lock_test.sh
chmod +x src/lib/log/tests/severity_test.sh
chmod +x src/lib/util/python/gen_wiredata.py
+ chmod +x tools/path_replacer.sh
])
AC_OUTPUT
--- /dev/null
+#!/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