bkruse: branch asterisknow r1891 - /branches/asterisknow/Makefile

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Tue Dec 4 12:31:09 CST 2007


Author: bkruse
Date: Tue Dec  4 12:31:09 2007
New Revision: 1891

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1891
Log:
Check for old versions of:
zapscan, zapscan.bin, ztscan and delete them

Modified:
    branches/asterisknow/Makefile

Modified: branches/asterisknow/Makefile
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/Makefile?view=diff&rev=1891&r1=1890&r2=1891
==============================================================================
--- branches/asterisknow/Makefile (original)
+++ branches/asterisknow/Makefile Tue Dec  4 12:31:09 2007
@@ -201,6 +201,24 @@
 	mkdir -p $(CONFIGDIR)/graphs
 	mkdir -p $(CONFIGDIR)/scripts
 	mkdir -p $(ASTVARLIBDIR)/scripts
+	@echo "Checking For old ztscan and zapscan...."
+	@for i in zapscan.bin zapscan ; do \
+		for x in /sbin/ /usr/sbin/ ; do \
+			if [ -f $$x$$i ] ; then \
+				echo "Removing  -->  $$x$$i" ; \
+				rm -f $$x$$i ; \
+			fi ; \
+		done ; \
+	done 
+	@for i in /sbin/ztscan /usr/sbin/ztscan ; do \
+		if [ -f $$i ] ; then \
+			if [ "`strings $$i | grep 'basechan'`" = "" ] ; then \
+				echo "Removing  --> $$i" ; \
+				rm -f $$i ; \
+			fi ; \
+		fi ; \
+	done
+	@echo "Old ztscan/zapscan removal complete!"
 	@for x in gui_configs/*; do \
 		echo "$$x  -->  $(ASTETCDIR)" ; \
 		cp $$x $(ASTETCDIR)/ ; \




More information about the asterisk-gui-commits mailing list