[sr-dev] git:master: xhttp_pi: make sure that cfg directory exists during install

Ovidiu Sas osas at voipembedded.com
Sat Jan 12 01:19:22 CET 2013


Module: sip-router
Branch: master
Commit: 4af97738081da634643f0fdfd681e7a94740a6d0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4af97738081da634643f0fdfd681e7a94740a6d0

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Fri Jan 11 19:14:15 2013 -0500

xhttp_pi: make sure that cfg directory exists during install

---

 modules/xhttp_pi/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/xhttp_pi/Makefile b/modules/xhttp_pi/Makefile
index fcabe89..1400bfd 100644
--- a/modules/xhttp_pi/Makefile
+++ b/modules/xhttp_pi/Makefile
@@ -40,7 +40,9 @@ install-cfg:
 		fi ; \
 	done
 	# provisionning xml framework
-	@$(call try_err, $(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/pi_framework.xml.sample)
+	@$(call try_err, mkdir -p $(cfg_prefix)/$(cfg_dir))
+	@$(call try_err, $(INSTALL_TOUCH) \
+		$(cfg_prefix)/$(cfg_dir)/pi_framework.xml.sample)
 	@$(call try_err, $(INSTALL_CFG) ../../examples/pi_framework.xml \
 		$(cfg_prefix)/$(cfg_dir)/pi_framework.xml.sample)
 	@if [ -z "${skip_cfg_install}" -a \




More information about the sr-dev mailing list