summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRazvan Becheriu <ravan@isc.org>2019-03-09 08:07:51 +0100
committerRazvan Becheriu <razvan@isc.org>2019-05-16 17:12:40 +0200
commit020bfc739384a0d6bfdfa41772f177e7cdd36c80 (patch)
tree0264a60eba2c91af15deaead5099b3fa2446d631 /tools
parentfixed shellcheck (diff)
downloadkea-020bfc739384a0d6bfdfa41772f177e7cdd36c80.tar.xz
kea-020bfc739384a0d6bfdfa41772f177e7cdd36c80.zip
export LIBYANG_PATH from config_defines
Diffstat (limited to 'tools')
-rwxr-xr-xtools/sysrepo_config42
-rwxr-xr-xtools/sysrepo_config_defines.sh.sample4
2 files changed, 3 insertions, 43 deletions
diff --git a/tools/sysrepo_config b/tools/sysrepo_config
index d4fc0e2d66..e03007e16a 100755
--- a/tools/sysrepo_config
+++ b/tools/sysrepo_config
@@ -10,10 +10,6 @@
# This script is used to run Kea from installation directory,
# as well as for running tests.
-if [ -z "${YANG_LIBRARY_PATH}" ]; then
- YANG_LIBRARY_PATH=/
-fi
-
if [ "$(uname -s)" = "Darwin" ]; then
DIR=$(stat -f %N "$0" | xargs dirname)
else
@@ -34,41 +30,6 @@ if [ $# -ne 1 ] && [ $# -ne 2 ]; then
echo "run: \`$0 --help\` for more help"
exit 0
fi
-<<<<<<< HEAD
-if [ "$1" = "--help" ]
-then
- echo "sysrepo_config 'option' ['library']"
- echo "options:"
- echo "--help"
- echo " print this help message"
- echo "--cflags-only-other"
- echo " get cpp compilation flags"
- echo "--cflags-only-I"
- echo " get include path"
- echo "--libs"
- echo " get lib path"
- echo "--modversion"
- echo " get version"
- echo "--variable=SR_REPOSITORY_LOC"
- echo " get repo path"
- echo "libraries:"
- echo " libsysrepo"
- echo " libSysrepo-cpp"
- exit 0
-else if [ $# -ne 2 ]
- then
- echo "run: \`$0 --help\` for more help"
- exit 0
- else if [ $2 != "libsysrepo" ] && [ $2 != "libSysrepo-cpp" ]
- then
- echo "library $2 not supported"
- echo "run: \`$0 --help\` for more help"
- exit 0
- else
- sysrepo_lib=$2
- fi
- fi
-=======
if [ "$1" = "--help" ]; then
echo "sysrepo_config 'option' ['library']"
@@ -89,7 +50,6 @@ if [ "$1" = "--help" ]; then
echo " libsysrepo"
echo " libSysrepo-cpp"
exit 0
->>>>>>> fixed script
fi
if [ $# -ne 2 ]; then
@@ -115,7 +75,7 @@ fi
if [ "$1" = "--libs" ]; then
# Earlier versions also required -lprotobuf, but it is no longer needed.
- echo "-L${SYSREPO_PATH}/build/src -L${SYSREPO_PATH}/build/swig -L$YANG_LIBRARY_PATH -l:${sysrepo_lib}.a -lSysrepo-cpp -lyang -pthread -lpcre -lev -lavl -lprotobuf-c"
+ echo "-L${SYSREPO_PATH}/lib/ -L${LIBYANG_PATH}/lib/ -lsysrepo -lSysrepo-cpp -lyang -pthread -lpcre -lev -lavl -lprotobuf-c"
exit 0
fi
diff --git a/tools/sysrepo_config_defines.sh.sample b/tools/sysrepo_config_defines.sh.sample
index ecfb34064e..04de5e1055 100755
--- a/tools/sysrepo_config_defines.sh.sample
+++ b/tools/sysrepo_config_defines.sh.sample
@@ -6,5 +6,5 @@
# This variable should point to the directory where sysrepo is compiled.
# You can download sysrepo sources from https://github.com/sysrepo/sysrepo.git
-SYSREPO_PATH="/please/specify/path/to/sysrepo/in/sysrepo_config_defines.sh"
-export SYSREPO_PATH
+export LIBYANG_PATH="/please/specify/path/to/libyang/in/sysrepo_config_defines.sh"
+export SYSREPO_PATH="/please/specify/path/to/sysrepo/in/sysrepo_config_defines.sh"