mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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.)
This commit is contained in:
parent
4853900dd3
commit
8dd90abc17
1 changed files with 5 additions and 5 deletions
|
@ -18,11 +18,11 @@ stdenv.mkDerivation rec {
|
||||||
installFlags = [ "prefix=$(out)" ];
|
installFlags = [ "prefix=$(out)" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -e "s|cmp|${diffutils}/bin/cmp|" \
|
sed -e "s|\<cmp\>|${diffutils}/bin/cmp|g" \
|
||||||
-e "s|cat|${coreutils}/bin/cat|" \
|
-e "s|\<cat\>|${coreutils}/bin/cat|g" \
|
||||||
-e "s|grep|${gnugrep}/bin/grep|" \
|
-e "s|\<grep\>|${gnugrep}/bin/grep|g" \
|
||||||
-e "s|\<sed\>|${gnused}/bin/sed|" \
|
-e "s|\<sed\>|${gnused}/bin/sed|g" \
|
||||||
-e "s|\<tee\>|${coreutils}/bin/tee|" \
|
-e "s|\<tee\>|${coreutils}/bin/tee|g" \
|
||||||
-i "$out/bin/autorevision"
|
-i "$out/bin/autorevision"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue