mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/ifchange: remove $temp when unchanged.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d5c8ad5359
commit
419f0da293
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 29 17:01:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* tool/ifchange: remove $temp when unchanged.
|
||||
|
||||
Tue Jan 29 16:59:01 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* insns.def (toregexp): generate a regexp from strings instead of one
|
||||
|
|
|
@ -700,17 +700,16 @@ vm.inc: $(srcdir)/template/vm.inc.tmpl
|
|||
|
||||
srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c $(srcdir)/ext/ripper/ripper.c
|
||||
|
||||
incs: $(INSNS) {$(VPATH)}node_name.inc $(srcdir)/revision.h
|
||||
incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}encdb.h $(srcdir)/revision.h
|
||||
|
||||
node_name.inc: {$(VPATH)}node.h
|
||||
$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
|
||||
|
||||
encdb.h.new::
|
||||
encdb.h.new:
|
||||
$(BASERUBY) $(srcdir)/enc/make_encdb.rb $(srcdir)/enc $@
|
||||
|
||||
encdb.h: encdb.h.new
|
||||
$(IFCHANGE) "$@" "$@.new"
|
||||
-@$(RM) "$@.new"
|
||||
|
||||
miniprelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
|
||||
$(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue