mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03: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
@ -18,11 +18,11 @@ stdenv.mkDerivation rec {
|
||||
installFlags = [ "prefix=$(out)" ];
|
||||
|
||||
postInstall = ''
|
||||
sed -e "s|cmp|${diffutils}/bin/cmp|" \
|
||||
-e "s|cat|${coreutils}/bin/cat|" \
|
||||
-e "s|grep|${gnugrep}/bin/grep|" \
|
||||
-e "s|\<sed\>|${gnused}/bin/sed|" \
|
||||
-e "s|\<tee\>|${coreutils}/bin/tee|" \
|
||||
sed -e "s|\<cmp\>|${diffutils}/bin/cmp|g" \
|
||||
-e "s|\<cat\>|${coreutils}/bin/cat|g" \
|
||||
-e "s|\<grep\>|${gnugrep}/bin/grep|g" \
|
||||
-e "s|\<sed\>|${gnused}/bin/sed|g" \
|
||||
-e "s|\<tee\>|${coreutils}/bin/tee|g" \
|
||||
-i "$out/bin/autorevision"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user