git.iko.soy/typeable/nixpkgs
on master help sign in
autorevision: use sed word delimiters for better precision

Fixes wrongly replaced 'cat' in help text: $ autorevision -h usage: autorevision {-t output-type | -s symbol} [-o cache-file [-f] ] [-e name] [-U] [-V] Options include: -t output-type = specify output type -s symbol = specify symbol output -o cache-file = specify cache file lo/nix/store/1rzzq2wdn5vfgbp5y9613jpdkf8i9ag6-coreutils-8.26/bin/cation ... (Also replace all occurences per line, in case that should occur.)

commit8dd90abc1763a50bcb2372468e1bb6f074433077 authorBjørn Forsman <bjorn.forsman@gmail.com> dateTue 7 Feb 2017, 17:12 (10 years ago) parent4853900
1 file changed+5−5
pkgs/tools/misc/autorevision/default.nix+5−5
pkgs/tools/misc/autorevision/default.nix+5−5
@@ -18,11 +18,11 @@ stdenv.mkDerivation rec {
1818 installFlags = [ "prefix=$(out)" ];
1919
2020 postInstall = ''
21− sed -e "s|cmp|${diffutils}/bin/cmp|" \
22− -e "s|cat|${coreutils}/bin/cat|" \
23− -e "s|grep|${gnugrep}/bin/grep|" \
24− -e "s|\<sed\>|${gnused}/bin/sed|" \
25− -e "s|\<tee\>|${coreutils}/bin/tee|" \
21+ sed -e "s|\<cmp\>|${diffutils}/bin/cmp|g" \
22+ -e "s|\<cat\>|${coreutils}/bin/cat|g" \
23+ -e "s|\<grep\>|${gnugrep}/bin/grep|g" \
24+ -e "s|\<sed\>|${gnused}/bin/sed|g" \
25+ -e "s|\<tee\>|${coreutils}/bin/tee|g" \
2626 -i "$out/bin/autorevision"
2727 '';
2828