From a6d9ae94aef8594ca836027a4bd359c7cb0dafb6 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 12 Jan 2010 23:51:04 +0000 Subject: [PATCH] fix htdocs install git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16268 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 52ae4e9527..2495120af5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -417,7 +417,7 @@ samples-conf: samples-htdocs: test -d $(DESTDIR)$(htdocsdir) || $(mkinstalldirs) $(DESTDIR)$(htdocsdir) for htdocsfile in `find htdocs -name \* | grep -v .svn` ; do \ - dir=`echo $$htdocsfile | sed -e 's|/[^/]*$$||'`; \ + dir=`echo $$htdocsfile | sed -e 's|/[^/]*$$||' | sed -e 's|^htdocs/||'`; \ filename=`echo $$htdocsfile | sed -e 's|^.*/||'`; \ test -d $(DESTDIR)$(htdocsdir)/$$dir || $(mkinstalldirs) $(DESTDIR)$(htdocsdir)/$$dir ; \ test -f $(DESTDIR)$(htdocsdir)/$$dir/$$filename || $(INSTALL) -m 644 $$dir/$$filename $(DESTDIR)$(htdocsdir)/$$dir 2>/dev/null; \