summaryrefslogtreecommitdiff
path: root/tools/maybe-replace
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-06 14:15:43 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-06 14:15:49 -0800
commit3eea219548e84efdbc3148ce378fcba865f97a01 (patch)
tree6ece594f60ddff038cf9c1d94b99d8d66a00bc20 /tools/maybe-replace
parent1458563f00deebbbcf3e8049dc90157fb825fae3 (diff)
downloadtmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.gz
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.bz2
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.xz
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.zip
Add basic source formatting tools
Diffstat (limited to 'tools/maybe-replace')
-rwxr-xr-xtools/maybe-replace3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/maybe-replace b/tools/maybe-replace
new file mode 100755
index 0000000..97bd19c
--- /dev/null
+++ b/tools/maybe-replace
@@ -0,0 +1,3 @@
+#!/bin/bash -eu
+cat > "$1.tmp"
+maybe-mv "$1.tmp" "$1"