Skip to content

Commit

Permalink
autorevision: use sed word delimiters for better precision
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
bjornfor committed Feb 7, 2017
1 parent 4853900 commit 8dd90ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkgs/tools/misc/autorevision/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
'';

Expand Down

0 comments on commit 8dd90ab

Please sign in to comment.