git.iko.soy/typeable/pandoc
on master help sign in
Improved test-markdown target in Makefile:

+ Use 'hsmarkdown' instead of building 'pandoc-strict' (which was a hack, and didn't work on Windows machines, anyway, due to the line ending problem) + Put top-level directory in path before running the test script, so that hsmarkdown can find 'pandoc' even if it hasn't been installed. git-svn-id: https://pandoc.googlecode.com/svn/trunk@406 788f1e2b-df1e-0410-8736-df70ead52e1b

commitbd31474d980fabfb6f00bc14558593b6cf5d7d64 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 2 Jan 2007, 21:30 (20 years ago) parentb9eeba9
1 file changed+5−7
Makefile+5−7
Makefile+5−7
@@ -296,13 +296,11 @@ $(win_pkg_name): $(THIS).exe $(win_docs)
296296.PHONY: test test-markdown
297297test: $(MAIN)
298298 @cd $(TESTDIR) && perl runtests.pl -s $(PWD)/$(MAIN)
299−strict:=$(MAIN)-strict
300−cleanup_files+=$(strict)
301−$(strict): $(MAIN)
302− echo "#!/bin/sh -e\n$(PWD)/$(MAIN) --strict \"\$$@\"" > $@; \
303− chmod +x $(strict)
304−test-markdown: $(strict)
305− @cd $(TESTDIR)/MarkdownTest_1.0.3 && perl MarkdownTest.pl -s $(PWD)/$(strict) -tidy
299+compat:=$(PWD)/hsmarkdown
300+test-markdown: $(MAIN) $(compat)
301+ @# set path so that wrapper can be run even if pandoc not installed
302+ @PATH=$(PWD):$$PATH; export PATH; cd $(TESTDIR)/MarkdownTest_1.0.3 && \
303+ perl MarkdownTest.pl -s $(compat) -tidy \
306304
307305# Stolen and slightly improved from a GPLed Makefile. Credits to John Meacham.
308306src_all:=$(shell find $(SRCDIR) -type f -name '*hs' | egrep -v '^\./(_darcs|lib|test)/')