Module: sip-router
Branch: master
Commit: 14122925eb86238b8bae707776fba0ef283b8dd7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1412292…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Oct 1 15:57:33 2009 +0200
db_mysql: automatically install sip-router_mysql.sh
---
modules/db_mysql/Makefile | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/db_mysql/Makefile b/modules/db_mysql/Makefile
index c3e3e43..a1b8a8a 100644
--- a/modules/db_mysql/Makefile
+++ b/modules/db_mysql/Makefile
@@ -22,4 +22,12 @@ LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
SERLIBPATH=../../lib
SER_LIBS=$(SERLIBPATH)/srdb2/srdb2 $(SERLIBPATH)/srdb1/srdb1
+install-mysql-script: $(bin_prefix)/$(bin_dir)
+ sed -e
"s#^DEFAULT_SCRIPT_DIR.*#DEFAULT_SCRIPT_DIR=\"$(share_prefix)/$(share_dir)\"#g"
\
+ < ../../scripts/mysql/$(SCR_NAME)_mysql.sh > \
+ $(bin_prefix)/$(bin_dir)/$(MAIN_NAME)_mysql.sh
+ chmod 755 $(bin_prefix)/$(bin_dir)/$(MAIN_NAME)_mysql.sh
+
+install-scripts: install-mysql-script
+
include ../../Makefile.modules