view packages/net/bsd_tcpip/current/doc/find_matching_files.sh @ 1777:c16341b1bac6 default tip

* Added execute permissions to files missed in conversion from CVS
author alexs
date Mon, 12 Oct 2009 02:26:09 +0100
parents e0c0827131d1
children
line wrap: on
line source

#! /bin/sh

#ORIG="/work4/OpenBSD.ORIG/sys"
ORIG="/work4/IPv6/kame/freebsd4/sys"
FILES=`cd ${ORIG};find sys kern net* -type f -or -type l | grep -v CVS`
#ECOS="/work2/ecc/ecc/net/tcpip/current"
ECOS="/work2/ecc/ecc/net/bsd_tcpip/current"

(cd ${ECOS};find src/sys include -type f | grep -v CVS >/tmp/ECOS_FILES)

for i in $FILES; do
  (echo -n "/";basename $i) >/tmp/FILE
  if fgrep -q -f /tmp/FILE /tmp/ECOS_FILES >/tmp/FOUND; then
    echo -n "$i "
    fgrep -f /tmp/FILE /tmp/ECOS_FILES
  fi
done