summaryrefslogtreecommitdiff
path: root/tool/ifchange
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-29 08:05:26 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-29 08:05:26 +0000
commit419f0da293f51ae96d54ca1ce26110c784b6fc27 (patch)
tree862271ec9adca0591735cfa377251d2a0fc8b06e /tool/ifchange
parentd5c8ad535961968b40823512ccdb12e38f1ed529 (diff)
* tool/ifchange: remove $temp when unchanged.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ifchange')
-rwxr-xr-xtool/ifchange1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/ifchange b/tool/ifchange
index 7a19264..544513a 100755
--- a/tool/ifchange
+++ b/tool/ifchange
@@ -10,6 +10,7 @@ if [ "$temp" = - ]; then
fi
if cmp "$target" "$temp" >/dev/null 2>&1; then
echo "$target unchanged"
+ rm -f "$temp"
else
echo "$target updated"
mv -f "$temp" "$target"