From 58480c63c689ee93f5f5693027920269b29b901d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 2 May 2015 09:36:55 +0200 Subject: also drop old %__find_(provides|requires) They're still defined by rpm, we just don't support pre mga5 exceptions mechanism anymore --- filter.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 filter.sh (limited to 'filter.sh') diff --git a/filter.sh b/filter.sh deleted file mode 100755 index cd96fd8..0000000 --- a/filter.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -#--------------------------------------------------------------- -# Project : Mageia -# Module : rpm -# File : filter.sh -# Version : $Id: filter.sh 227371 2007-09-08 15:34:39Z anssi $ -# Author : Frederic Lepied -# Created On : Tue May 13 15:45:17 2003 -# Purpose : filter using grep and first argument the -# command passed as the rest of the command line -#--------------------------------------------------------------- - -GREP_ARG="$1" -FILE_GREP_ARG="$2" -BUILDROOT="$3" -PROG="$4" -shift 4 - -# use ' ' to signify no arg as rpm filter empty strings from -# command line :( -if [ "$FILE_GREP_ARG" != ' ' ]; then - # get rid of double and trailing slashes - BUILDROOT="$(echo "$BUILDROOT" | perl -pe 's,/+,/,g;s,/$,,')" - perl -pe "s,^$BUILDROOT,," | grep -v "$FILE_GREP_ARG" | perl -pe "s,^,$BUILDROOT," -else - cat -fi | \ -$PROG "$@" | \ -if [ "$GREP_ARG" != ' ' ]; then - grep -v "$GREP_ARG" -else - cat -fi -exit ${PIPESTATUS[1]} - -# filter.sh ends here -- cgit v1.2.1