Changeset 71035


Ignore:
Timestamp:
Aug 30, 2010, 9:00:58 AM (10 years ago)
Author:
jmr@…
Message:

remove useless uses of cat

Location:
trunk/base
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure.ac

    r68996 r71035  
    22dnl $Id$
    33AC_PREREQ(2.63)
    4 AC_DEFUN([MACPORTS_VERSION_MACRO], [esyscmd(cat config/macports_version | tr -d '\n')])
     4AC_DEFUN([MACPORTS_VERSION_MACRO], [esyscmd(<config/macports_version tr -d '\n')])
    55AC_INIT([MacPorts],MACPORTS_VERSION_MACRO,[macports-dev@lists.macosforge.org],[macports])
    66AC_CONFIG_SRCDIR([src/pextlib1.0/Pextlib.c])
  • trunk/base/doc/Makefile

    r68996 r71035  
    3333        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${DESTDIR}${mpconfigdir}
    3434
    35         cat prefix.mtree | $(MTREE) -U -e -p ${INSTALLDIR} > /dev/null
     35        <prefix.mtree $(MTREE) -U -e -p ${INSTALLDIR} > /dev/null
    3636        if test -L "${INSTALLDIR}/man" ; then \
    3737                rm -f "${INSTALLDIR}/man"; \
  • trunk/base/portmgr/packaging/packageall.tcl

    r51780 r71035  
    303303        }
    304304        #if {[file readable $logfilename]} {
    305         #       if {[catch {system "cat $logfilename | /usr/sbin/sendmail -t"} error]} {
     305        #       if {[catch {system "<$logfilename /usr/sbin/sendmail -t"} error]} {
    306306        #               puts stderr "Internal error: $error"
    307307        #       }
  • trunk/base/portmgr/packaging/rpmall.tcl

    r68749 r71035  
    365365        }
    366366        #if {[file readable $logfilename]} {
    367         #       if {[catch {system "cat $logfilename | /usr/sbin/sendmail -t"} error]} {
     367        #       if {[catch {system "<$logfilename /usr/sbin/sendmail -t"} error]} {
    368368        #               puts stderr "Internal error: $error"
    369369        #       }
  • trunk/base/src/port/Makefile

    r66639 r71035  
    2323
    2424mkdirs:
    25         cat ../../doc/prefix.mtree | $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null
     25        <../../doc/prefix.mtree $(MTREE) -U -d -e -p ${INSTALLDIR} > /dev/null
    2626
    2727clean:
  • trunk/base/src/portindex/Makefile

    r19376 r71035  
    1010%.cgi: %.pl
    1111        @ echo $@
    12         @ cat $< | sed "/@@PREFIX@@/s//$(subst /,\/,$(PREFIX))/" > $@
     12        @ < $< sed "/@@PREFIX@@/s//$(subst /,\/,$(PREFIX))/" > $@
    1313
    1414install: all
Note: See TracChangeset for help on using the changeset viewer.