#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 UPSTREAM_VERSION := $(shell grep version package.json | cut -d\" -f4) PKGDIR := $(CURDIR)/debian/node-smash override_dh_install: dh_install sed -i -e 's|env node|env nodejs|' \ -e 's|"./"|"smash"|' \ -e 's|smash.version|"$(UPSTREAM_VERSION)"|' \ $(PKGDIR)/usr/bin/smash sed -e 's|\./lib/||' \ -e 's|require.*version.*|"$(UPSTREAM_VERSION)";|' \ $(CURDIR)/index.js >$(PKGDIR)/usr/lib/nodejs/smash.js sed -i 's|e("\./|e("smash/|' \ $(PKGDIR)/usr/lib/nodejs/smash/*.js override_dh_auto_test: vows %: dh $@ .PHONY: override_dh_install override_dh_auto_test