diff options
author | 2006-12-18 21:45:07 +0000 | |
---|---|---|
committer | 2006-12-18 21:45:07 +0000 | |
commit | 3b380b6d4d421cca33a79b8d0e09dfc1dc888bac (patch) | |
tree | c65c97a0abaa1843d248b4a5a994423c5fc08cbd | |
parent | Skip a find(1) execution, use fgrep to match a complete string, and make sure... (diff) | |
download | autoepatch-3b380b6d4d421cca33a79b8d0e09dfc1dc888bac.tar.gz autoepatch-3b380b6d4d421cca33a79b8d0e09dfc1dc888bac.tar.bz2 autoepatch-3b380b6d4d421cca33a79b8d0e09dfc1dc888bac.zip |
Don't use xargs to start the grep command, the portable subset of find options allows -exec +, that does what we need. Also use egrep instead of fgrep.
svn path=/trunk/; revision=18
-rw-r--r-- | patches/kde-autoconf/kde-autoconf.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/patches/kde-autoconf/kde-autoconf.sh b/patches/kde-autoconf/kde-autoconf.sh index 98689a5..3663006 100644 --- a/patches/kde-autoconf/kde-autoconf.sh +++ b/patches/kde-autoconf/kde-autoconf.sh @@ -8,8 +8,7 @@ patch_targets() { || return 0 # Find the admindir, wherever it is. - find "${WORKDIR}" -path '*/admin/cvs.sh' -type f -print0 | \ - xargs -0 fgrep -L 'autoconf*2.6*' + find "${WORKDIR}" -path '*/admin/cvs.sh' -type f -exec egrep -L 'autoconf.*2.6.*' {} + } # This patch is always required |