#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

TEST_STRING_QUOTED="test\n\test\b"

%:
	dh $@

#override_dh_auto_build:

override_dh_fixperms:
	dh_fixperms
	chmod +x $(CURDIR)/debian/node-quote-stream/usr/lib/nodejs/quote-stream/bin/cmd.js

override_dh_auto_test:
	test `printf $(TEST_STRING_QUOTED) | nodejs $(CURDIR)/example/stream.js` = \"$(TEST_STRING_QUOTED)\"


