Browse Source

Merge branch 'remove-cloc-from-dist'

add-comment-stripped-dist-source
Sami Vaarala 9 years ago
parent
commit
64560f815f
  1. 6
      Makefile
  2. 2
      util/make_dist.sh

6
Makefile

@ -977,10 +977,14 @@ doc: $(patsubst %.txt,%.html,$(wildcard doc/*.txt))
doc/%.html: doc/%.txt doc/%.html: doc/%.txt
rst2html $< $@ rst2html $< $@
cloc: dist cloc-1.60.pl
@echo "CLOC report on combined duktape.c source file"
@perl cloc-1.60.pl --quiet dist/src/duktape.c
# Source distributable for end users # Source distributable for end users
# XXX: want to run codepolicycheck when dist gets built, but don't want to depend on it. # XXX: want to run codepolicycheck when dist gets built, but don't want to depend on it.
# XXX: make prints a harmless warning related to the sub-make. # XXX: make prints a harmless warning related to the sub-make.
dist: compiler.jar cloc-1.60.pl dist: compiler.jar
@make codepolicycheck @make codepolicycheck
sh util/make_dist.sh --minify closure sh util/make_dist.sh --minify closure

2
util/make_dist.sh

@ -798,8 +798,6 @@ rm $DISTSRCSEP/caseconv.txt
python util/combine_src.py $DISTSRCSEP $DISTSRCCOM/duktape.c \ python util/combine_src.py $DISTSRCSEP $DISTSRCCOM/duktape.c \
"$DUK_VERSION" "$GIT_COMMIT" "$GIT_DESCRIBE" \ "$DUK_VERSION" "$GIT_COMMIT" "$GIT_DESCRIBE" \
$DIST/LICENSE.txt.tmp $DIST/AUTHORS.rst.tmp $DIST/LICENSE.txt.tmp $DIST/AUTHORS.rst.tmp
echo "CLOC report on combined duktape.c source file"
perl cloc-1.60.pl --quiet $DISTSRCCOM/duktape.c
# Clean up temp files # Clean up temp files
rm $DIST/*.tmp rm $DIST/*.tmp

Loading…
Cancel
Save