Revision
71035
Author
jmr@macports.org
Date
2010-08-30 02:00:58 -0700 (Mon, 30 Aug 2010)

Log Message

remove useless uses of cat

Modified Paths

Diff

Modified: trunk/base/configure.ac (71034 => 71035)


--- trunk/base/configure.ac	2010-08-30 08:57:35 UTC (rev 71034)
+++ trunk/base/configure.ac	2010-08-30 09:00:58 UTC (rev 71035)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 dnl $Id$
 AC_PREREQ(2.63)
-AC_DEFUN([MACPORTS_VERSION_MACRO], [esyscmd(cat config/macports_version | tr -d '\n')])
+AC_DEFUN([MACPORTS_VERSION_MACRO], [esyscmd(<config/macports_version tr -d '\n')])
 AC_INIT([MacPorts],MACPORTS_VERSION_MACRO,[macports-dev@lists.macosforge.org],[macports])
 AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c])
 AC_CONFIG_HEADERS([src/config.h])

Modified: trunk/base/doc/Makefile (71034 => 71035)


--- trunk/base/doc/Makefile	2010-08-30 08:57:35 UTC (rev 71034)
+++ trunk/base/doc/Makefile	2010-08-30 09:00:58 UTC (rev 71035)
@@ -32,7 +32,7 @@
 	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
 	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${DESTDIR}${mpconfigdir}
 
-	cat prefix.mtree | $(MTREE) -U -e -p ${INSTALLDIR} > /dev/null
+	<prefix.mtree $(MTREE) -U -e -p ${INSTALLDIR} > /dev/null
 	if test -L "${INSTALLDIR}/man" ; then \
 		rm -f "${INSTALLDIR}/man"; \
 	fi

Modified: trunk/base/portmgr/packaging/packageall.tcl (71034 => 71035)


--- trunk/base/portmgr/packaging/packageall.tcl	2010-08-30 08:57:35 UTC (rev 71034)
+++ trunk/base/portmgr/packaging/packageall.tcl	2010-08-30 09:00:58 UTC (rev 71035)
@@ -302,7 +302,7 @@
 		set logfd ""
 	}
 	#if {[file readable $logfilename]} {
-	#	if {[catch {system "cat $logfilename | /usr/sbin/sendmail -t"} error]} {
+	#	if {[catch {system "<$logfilename /usr/sbin/sendmail -t"} error]} {
 	#		puts stderr "Internal error: $error"
 	#	}
 	#}

Modified: trunk/base/portmgr/packaging/rpmall.tcl (71034 => 71035)


--- trunk/base/portmgr/packaging/rpmall.tcl	2010-08-30 08:57:35 UTC (rev 71034)
+++ trunk/base/portmgr/packaging/rpmall.tcl	2010-08-30 09:00:58 UTC (rev 71035)
@@ -364,7 +364,7 @@
 		set logfd ""
 	}
 	#if {[file readable $logfilename]} {
-	#	if {[catch {system "cat $logfilename | /usr/sbin/sendmail -t"} error]} {
+	#	if {[catch {system "<$logfilename /usr/sbin/sendmail -t"} error]} {
 	#		puts stderr "Internal error: $error"
 	#	}
 	#}

Modified: trunk/base/src/port/Makefile (71034 => 71035)


--- trunk/base/src/port/Makefile	2010-08-30 08:57:35 UTC (rev 71034)
+++ trunk/base/src/port/Makefile	2010-08-30 09:00:58 UTC (rev 71035)
@@ -22,7 +22,7 @@
 	${edit} port.tcl > $@
 
 mkdirs:
-	cat ../../doc/prefix.mtree | $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null
+	<../../doc/prefix.mtree $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null
 
 clean:
 	rm -f ${SCRIPTS}

Modified: trunk/base/src/portindex/Makefile (71034 => 71035)


--- trunk/base/src/portindex/Makefile	2010-08-30 08:57:35 UTC (rev 71034)
+++ trunk/base/src/portindex/Makefile	2010-08-30 09:00:58 UTC (rev 71035)
@@ -9,7 +9,7 @@
 
 %.cgi: %.pl
 	@ echo $@
-	@ cat $< | sed "/@@PREFIX@@/s//$(subst /,\/,$(PREFIX))/" > $@
+	@ < $< sed "/@@PREFIX@@/s//$(subst /,\/,$(PREFIX))/" > $@
 
 install: all
 	mkdir -p ${DESTDIR}$(PREFIX)