Skip to content

Commit

Permalink
Merge branch 'check-encoding'
Browse files Browse the repository at this point in the history
  • Loading branch information
mhayashi1120 committed Sep 19, 2015
2 parents 06f52c7 + 284e265 commit 443b380
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.elc
.test-init.el
encodings/*
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
EMACS = emacs

check: compile
$(MAKE) print-encoding
$(EMACS) -q -batch -l langtool.el -l .test-init.el -l langtool-test.el \
-f ert-run-tests-batch-and-exit
$(EMACS) -q -batch -l langtool.elc -l .test-init.el -l langtool-test.el \
Expand All @@ -9,3 +10,10 @@ check: compile
compile:
$(EMACS) -q -batch -f batch-byte-compile \
langtool.el

# print encoding conversion
print-encoding:
@$(EMACS) -batch -l "./langtool.el" -eval "(mapc (lambda (cs) (let ((jcs (langtool--java-coding-system cs))) (princ (format \"%s -> %s\n\" cs jcs)))) (sort (coding-system-list) 'string-lessp))"

save-encoding:
@$(MAKE) -s print-encoding > ./encodings/`date +%Y%m%dT%H%M%S`.txt
Empty file added encodings/.empty
Empty file.

0 comments on commit 443b380

Please sign in to comment.