[Tkabber-dev] r1849 - trunk/tkabber

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sat Oct 31 19:35:20 MSK 2009


Author: sergei
Date: 2009-10-31 19:35:20 +0300 (Sat, 31 Oct 2009)
New Revision: 1849

Modified:
   trunk/tkabber/Makefile
Log:
	* Makefile:
	  Also, fixed call to echo for dash shell which doesn't recognize -e
	  option.


Modified: trunk/tkabber/Makefile
===================================================================
--- trunk/tkabber/Makefile	2009-10-31 14:27:34 UTC (rev 1848)
+++ trunk/tkabber/Makefile	2009-10-31 16:35:20 UTC (rev 1849)
@@ -29,24 +29,24 @@
 install: install-bin install-doc install-examples
 
 install-bin:
-	mkdir -p $(DESTDIR)/$(TKABBERDIR)
-	cp -r *.tcl $(SUBDIRS) $(DESTDIR)/$(TKABBERDIR)
-	chmod 755 $(DESTDIR)/$(TKABBERDIR)/tkabber.tcl
-	chmod 755 $(DESTDIR)/$(TKABBERDIR)/tkabber-remote.tcl
-	mkdir -p $(DESTDIR)/$(BINDIR)
-	echo -e "#!/bin/sh\nexec $(TKABBERDIR)/tkabber.tcl \"$$@\"\n" \
-		>$(DESTDIR)/$(BINDIR)/tkabber
-	echo -e "#!/bin/sh\nexec $(TKABBERDIR)/tkabber-remote.tcl \"$$@\"\n" \
-		>$(DESTDIR)/$(BINDIR)/tkabber-remote
-	chmod 755 $(DESTDIR)/$(BINDIR)/tkabber
-	chmod 755 $(DESTDIR)/$(BINDIR)/tkabber-remote
+	mkdir -p $(DESTDIR)$(TKABBERDIR)
+	cp -r *.tcl $(SUBDIRS) $(DESTDIR)$(TKABBERDIR)
+	chmod 755 $(DESTDIR)$(TKABBERDIR)/tkabber.tcl
+	chmod 755 $(DESTDIR)$(TKABBERDIR)/tkabber-remote.tcl
+	mkdir -p $(DESTDIR)$(BINDIR)
+	echo "#!/bin/sh" >$(DESTDIR)$(BINDIR)/tkabber
+	echo "exec $(TKABBERDIR)/tkabber.tcl \"\$$@\"" >>$(DESTDIR)$(BINDIR)/tkabber
+	echo "#!/bin/sh" >$(DESTDIR)$(BINDIR)/tkabber-remote
+	echo "exec $(TKABBERDIR)/tkabber-remote.tcl \"\$$@\"" >>$(DESTDIR)$(BINDIR)/tkabber-remote
+	chmod 755 $(DESTDIR)$(BINDIR)/tkabber
+	chmod 755 $(DESTDIR)$(BINDIR)/tkabber-remote
 
 install-doc: doc
-	mkdir -p $(DESTDIR)/$(DOCDIR)
-	cp AUTHORS COPYING ChangeLog README doc/tkabber.html $(DESTDIR)/$(DOCDIR)
+	mkdir -p $(DESTDIR)$(DOCDIR)
+	cp AUTHORS COPYING ChangeLog README doc/tkabber.html $(DESTDIR)$(DOCDIR)
 
 install-examples:
-	mkdir -p $(DESTDIR)/$(DOCDIR)
-	cp -r examples $(DESTDIR)/$(DOCDIR)
+	mkdir -p $(DESTDIR)$(DOCDIR)
+	cp -r examples $(DESTDIR)$(DOCDIR)
 
 .PHONY: all doc install install-bin install-doc install-examples



More information about the Tkabber-dev mailing list