Skip to content

Commit

Permalink
* improve the output
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Sep 2, 2015
1 parent df8c2c3 commit 02de427
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ all: QR2.rb
@echo "## CHECK ##"
@echo "#############"
@echo
diff QR.rb QR2.rb
diff -s QR.rb QR2.rb

check: all
sha1sum --quiet -c SHA1SUMS
@sha1sum --quiet -c SHA1SUMS

QR.scala: QR.rb
@echo
Expand Down
4 changes: 2 additions & 2 deletions src/Makefile.gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ def banner(s1, s2=nil, i=nil)
END
OUT << "all: QR2.rb"
banner("CHECK")
OUT << "\tdiff QR.rb QR2.rb"
OUT << "\tdiff -s QR.rb QR2.rb"
OUT << ""
OUT << "check: all"
OUT << "\tsha1sum --quiet -c SHA1SUMS"
OUT << "\t@sha1sum --quiet -c SHA1SUMS"

[*RunSteps, RunStep["Ruby", "QR2.rb"]].each_cons(2).with_index do |(s1, s2), i|
cmd = s1.cmd_make.gsub("OUTFILE", s2.src)
Expand Down

0 comments on commit 02de427

Please sign in to comment.