aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-09 12:10:50 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-09 12:10:50 +0000
commit893053b1584f48adec6c940651393d49a9a41a30 (patch)
tree13c383256ff5c43f9a5d184284cbe9d7858a11d6
parentafcad182c9db0ea75c36ba9d2262d5fd9097ffe6 (diff)
downloadruby-893053b1584f48adec6c940651393d49a9a41a30.tar.gz
* tool/ifchange: fix timestamp error when target without directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rwxr-xr-xtool/ifchange2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3f72913e6f..14822e07b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 9 21:10:04 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * tool/ifchange: fix timestamp error when target without
+ directory.
+
Thu Jun 9 19:46:22 2016 Kazuki Yamaguchi <k@rhe.jp>
* ext/openssl/ossl_ssl.c: Add define guards for OPENSSL_NO_EC.
diff --git a/tool/ifchange b/tool/ifchange
index 8603306cdb..cc630b0c99 100755
--- a/tool/ifchange
+++ b/tool/ifchange
@@ -75,7 +75,7 @@ fi
if [ -n "${timestamp}" ]; then
if [ x"${timestamp}" = x. ]; then
- if [ x"$targetdir" = x. ]; then
+ if [ x"$targetdir" = x ]; then
timestamp=.time."$target"
else
timestamp="$targetdir"/.time.`basename "$target"`