diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-09 15:55:33 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-09 15:55:33 -0400 |
commit | d330445fb7f84748e70e67ca5bc44ce0a1a258f7 (patch) | |
tree | 0c1c957298635b7ba0ff69c2fe76af647304a631 /write-ifchanged | |
parent | f579b669d45c02b39474827f12522ff4afa6cf4a (diff) |
Work with the new version of autothing.
Diffstat (limited to 'write-ifchanged')
-rwxr-xr-x | write-ifchanged | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/write-ifchanged b/write-ifchanged deleted file mode 100755 index c65fa16..0000000 --- a/write-ifchanged +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -outfile=$1 -tmpfile="$(dirname "$outfile")/.tmp${outfile##*/}" - -cat > "$tmpfile" || exit $? -if cmp -s "$tmpfile" "$outfile"; then - rm -f "$tmpfile" || : -else - mv -f "$tmpfile" "$outfile" -fi |