#!/bin/sh for f in `find $1 -type f -name Imakefile -print | xargs grep -l Library.tmpl` do patch -p << END_OF_PATCH --- $f.orig +++ $f @@ -30,1 +30,1 @@ -DependTarget() +/* DependTarget() -- Library.tmpl contains this now */ END_OF_PATCH done