[svn-commits] dsessions: testsuite/bamboo/trunk r1361 - /bamboo/trunk/Makefile

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Feb 4 12:36:51 CST 2011


Author: dsessions
Date: Fri Feb  4 12:36:47 2011
New Revision: 1361

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1361
Log:
Removed the use of install and replaced with cp for Solaris support.

Modified:
    bamboo/trunk/Makefile

Modified: bamboo/trunk/Makefile
URL: http://svnview.digium.com/svn/testsuite/bamboo/trunk/Makefile?view=diff&rev=1361&r1=1360&r2=1361
==============================================================================
--- bamboo/trunk/Makefile (original)
+++ bamboo/trunk/Makefile Fri Feb  4 12:36:47 2011
@@ -1,6 +1,6 @@
-INSTALL?=install
+INSTALL=install
 
-BINDIR?=/usr/local/bin/bamboo
+BINDIR=/usr/local/bin/bamboo
 
 all:
 	@echo "************************************************************"
@@ -10,6 +10,11 @@
 	@echo "************************************************************"
 
 install:
-	mkdir -p $(BINDIR)
-	for n in bin/* ; do $(INSTALL) -m 755 $$n $(BINDIR) ; done
+	@test -d $(BINDIR) || \
+		mkdir -p $(BINDIR)
+	@for f in bin/*; do \
+		test -f $$f && \
+		chmod 755 $$f && \
+		cp -p $$f $(BINDIR); \
+	done
 	if [ -d /Library/LaunchDaemons ] ; then $(INSTALL) -m 644 mac-osx/org.asterisk.asterisk.plist /Library/LaunchDaemons ; fi




More information about the svn-commits mailing list