File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ Download and search for 'pattern' in diffoscope outputs of every unreproducible
2222This is useful to identify packages that are unreproducible because of a specific issue.
2323
2424OPTIONS
25- -h, --help Show this message
26- -i, --ignore-case Ignore case distinctions in patterns and input data
25+ -h, --help Show this message
26+ -i, --ignore-case Ignore case distinctions in patterns and input data
27+ -l, --files-with-matches Only print the name of each file containing the pattern
2728
2829Examples:
2930 $ ${progname} "gzip compressed data"
3031 $ ${progname} -i zipinfo
32+ $ ${progname} -l "max compression"
33+ $ ${progname} -i -l gnu_build_id
3134EOF
3235}
3336
@@ -38,7 +41,10 @@ while ((${#})); do
3841 exit 0
3942 ;;
4043 -i|--ignore-case)
41- extra_grep_opt=" --ignore-case"
44+ extra_grep_opt+=(" --ignore-case" )
45+ ;;
46+ -l|--files-with-matches)
47+ extra_grep_opt+=(" --files-with-matches" )
4248 ;;
4349 --)
4450 shift
8995
9096echo -e " \n==> Searching for \" ${pattern} \" in diffoscope outputs...\n"
9197parallel --silent -j " $( nproc) " \
92- " grep --color=always --with-filename --line-number ${extra_grep_opt} '${pattern} ' {}" ::: " ${tmp_dir} " /* .diffoscope || true
98+ " grep --color=always --with-filename --line-number ${extra_grep_opt[*] } '${pattern} ' {}" ::: " ${tmp_dir} " /* .diffoscope || true
You can’t perform that action at this time.
0 commit comments