summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/CMakeLists.txt6
-rwxr-xr-xscripts/afm-debug.in (renamed from scripts/afm-debug)2
-rwxr-xr-xscripts/afm-util.in (renamed from scripts/afm-util)2
3 files changed, 6 insertions, 4 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index e0f80ac..b1ba1d7 100644
--- a/scripts/CMakeLists.txt
+++ b/scripts/CMakeLists.txt
@@ -19,10 +19,12 @@
cmake_minimum_required(VERSION 2.8)
if(NOT USE_SDK)
- install(PROGRAMS afm-util DESTINATION ${CMAKE_INSTALL_BINDIR})
+ configure_file(afm-util.in afm-util)
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-util DESTINATION ${CMAKE_INSTALL_BINDIR})
install(PROGRAMS afm-install DESTINATION ${CMAKE_INSTALL_BINDIR})
if(AGL_DEVEL)
- install(PROGRAMS afm-debug DESTINATION ${CMAKE_INSTALL_BINDIR})
+ configure_file(afm-debug.in afm-debug)
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/afm-debug DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
endif()
diff --git a/scripts/afm-debug b/scripts/afm-debug.in
index 18ecae2..e676469 100755
--- a/scripts/afm-debug
+++ b/scripts/afm-debug.in
@@ -36,7 +36,7 @@ function info() {
}
# setup debug dir (shared with service file)
-DBGDIR=/var/run/afm-debug
+DBGDIR=@afm_platform_rundir@/debug
mkdir -p $DBGDIR
# check application name passed as first arg by gdb
diff --git a/scripts/afm-util b/scripts/afm-util.in
index c5e48eb..40bc7da 100755
--- a/scripts/afm-util
+++ b/scripts/afm-util.in
@@ -1,7 +1,7 @@
#!/bin/bash
send() {
- afb-client-demo -H -d unix:/run/afm/apis/ws/afm-main "$1" "$2" |
+ afb-client-demo -H -d unix:@afm_platform_rundir@/apis/ws/afm-main "$1" "$2" |
awk '$1=="ON-REPLY-FAIL"{$1="ERROR:";$2="";print;exit 1;}NR>1'
}