summaryrefslogtreecommitdiff
path: root/write-ifchanged
diff options
context:
space:
mode:
Diffstat (limited to 'write-ifchanged')
-rwxr-xr-xwrite-ifchanged11
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