[Pkg-javascript-commits] [acorn] 03/07: Link and clean

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 18 11:49:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository acorn.

commit 60e314a2389667b9286ca02d7c6ae8627955e5ae
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Aug 18 12:23:14 2017 +0200

    Link and clean
---
 debian/clean |  3 ++-
 debian/rules | 11 +++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/clean b/debian/clean
index 32f7034..3484daa 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,4 +1,5 @@
 dist/
 debian/man/*.1
 *.min.js
-acorn.js
\ No newline at end of file
+acorn.js
+index.js
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 6bd8eb2..6567629 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,13 +6,17 @@ MANPAGES := $(subst .xml,, $(wildcard debian/man/*.*.xml))
 
 SOURCES = $(shell find src/ -name "*.js")
 TARGETS = $(subst src, dist, $(SOURCES))
-COMPILE_MODULES = compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib -Idist/
+COMPILE_MODULES = compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs -I/usr/lib/nodejs/ast-types/lib
 
 %:
 	dh $@
 
 override_dh_clean:
 	dh_clean debian/man/*.1 *.min.js
+# ugly recreate spurious upstream file (need a +ds revision instead)
+	mkdir dist
+	touch dist/.keep
+	ln -s acorn.js dist/acorn_csp.js
 
 override_dh_auto_build: dist $(TARGETS) $(MANPAGES)
 	# I guess rollup is better than node-es6-module-transpiler...
@@ -32,11 +36,14 @@ dist:
 	mkdir -p dist/loose
 	mkdir -p dist/walk
 	ln -s dist/index.js acorn.js
+	ln -s dist/index.js index.js
+	ln -s index.js dist/acorn.js
+	ln -s loose dist/acorn_loose
 
 dist/bin/acorn.js: dist/index.js
 
 %.js:
-	$(COMPILE_MODULES) $(subst dist, src, $@) > $@
+	$(COMPILE_MODULES) -I$(dir $(subst dist, src, $@)) $(subst dist, src, $@) > $@
 
 $(MANPAGES):
 	# Create man page from DocBook XML

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/acorn.git



More information about the Pkg-javascript-commits mailing list