Commit 13a95cd1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(check-eof): New target. Check that all elisp files ends in a

	newline, to avoid strange code in the concatenated lyskom.el.
(check): Depend on check-eof.
parent 6057cde9
...@@ -194,10 +194,24 @@ fast: $(HEADER-ELC) $(LANGUAGE-ELC) $(SOURCES-ELC) ...@@ -194,10 +194,24 @@ fast: $(HEADER-ELC) $(LANGUAGE-ELC) $(SOURCES-ELC)
cat $^ >$(TARGET) cat $^ >$(TARGET)
check: $(TARGET-EL) check: $(TARGET-EL) check-eof
$(EMACS-BATCH) -l lpath.el -l $< -l check-strings.el \ $(EMACS-BATCH) -l lpath.el -l $< -l check-strings.el \
-f lyskom-check-strings -f lyskom-check-strings
check-eof:
for i in $(HEADER) $(LANGUAGE-EL) $(SOURCES); \
do \
sz=`wc -c < $$i`; \
sz=`expr $$sz - 1`; \
lastchar=`od -t d1 -j $$sz $$i|awk 'NF==2 {print $$2}'`; \
if [ $$lastchar != 10 ]; \
then \
echo $$i:`wc -l < $$i`: bad file ending >&2; \
exit 1; \
fi \
done
TAGS: $(HEADER) $(LANGUAGE-EL) $(SOURCES) TAGS: $(HEADER) $(LANGUAGE-EL) $(SOURCES)
etags $^ etags $^
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment