use $(BASENAME) set by configure
authorRussell Bryant <russell@russellbryant.com>
Thu, 22 Jun 2006 10:36:45 +0000 (10:36 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 22 Jun 2006 10:36:45 +0000 (10:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35392 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index b0d0179..a4b48be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -643,26 +643,26 @@ adsi:
        mkdir -p $(DESTDIR)$(ASTETCDIR)
        for x in configs/*.adsi; do \
                if [ ! -f $(DESTDIR)$(ASTETCDIR)/$$x ]; then \
-                       $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x` ; \
+                       $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x` ; \
                fi ; \
        done
 
 samples: adsi
        mkdir -p $(DESTDIR)$(ASTETCDIR)
        for x in configs/*.sample; do \
-               if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ]; then \
+               if [ -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ]; then \
                        if [ "$(OVERWRITE)" = "y" ]; then \
-                               if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $$x ; then \
+                               if cmp -s $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $$x ; then \
                                        echo "Config file $$x is unchanged"; \
                                        continue; \
                                fi ; \
-                               mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`.old ; \
+                               mv -f $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample`.old ; \
                        else \
                                echo "Skipping config file $$x"; \
                                continue; \
                        fi ;\
                fi ; \
-               $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ;\
+               $(INSTALL) -m 644 $$x $(DESTDIR)$(ASTETCDIR)/`$(BASENAME) $$x .sample` ;\
        done
        if [ "$(OVERWRITE)" = "y" ] || [ ! -f $(DESTDIR)$(ASTCONFPATH) ]; then \
                ( \