[Pkg-javascript-commits] [acorn] 17/19: Rework /usr/bin/acorn so it works
Julien Puydt
julien.puydt at laposte.net
Fri Nov 25 08:13:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository acorn.
commit a236881b33f89b100051b9f7de22732a1bfd910c
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Tue Nov 22 20:21:58 2016 +0100
Rework /usr/bin/acorn so it works
---
debian/changelog | 1 +
debian/node-acorn.links | 1 +
debian/rules | 6 ++++++
3 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 29fcb7a..e24cabd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ acorn (4.0.3-1) UNRELEASED; urgency=medium
* Make the new sources compile with node-es6-module-transpiler.
* Disable autotests : they don't work anymore.
* Add lintian overrides for autogenerated code we have the generator for.
+ * Fix /usr/bin/acorn so it works
-- Julien Puydt <julien.puydt at laposte.net> Tue, 15 Nov 2016 18:10:46 +0100
diff --git a/debian/node-acorn.links b/debian/node-acorn.links
new file mode 100644
index 0000000..090f0cd
--- /dev/null
+++ b/debian/node-acorn.links
@@ -0,0 +1 @@
+usr/lib/nodejs/acorn/bin/acorn usr/bin/acorn
diff --git a/debian/rules b/debian/rules
index a79eb83..ed2bdee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,6 +24,12 @@ override_dh_auto_build: dist $(TARGETS)
# but we don't have rollup (yet)
sed -i dist/index.js -e's/$$.tokTypes/$$.types/g'
sed -i dist/index.js -e 's/$$.tokContexts/$$.types/g'
+ sed -i dist/index.js -e 's/new Parser/new $$$$state$$$$.Parser/g'
+ mv dist/bin/acorn.js dist/bin/acorn
+ chmod a+x dist/bin/acorn
+ sed -i dist/bin/acorn -e 's/\$$//g'
+ sed -i dist/bin/acorn -e 's/node /nodejs /g'
+ sed -i dist/bin/acorn -e 's|"use strict";|#!/usr/bin/nodejs|'
.PHONY: dist
dist:
--
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