[Pkg-javascript-commits] [node-async] 15/26: Tidy rules: Rename variables libpkgname → pkg-js, nodepkgname → pkg-node.

Jonas Smedegaard dr at jones.dk
Sun Jan 7 17:19:56 UTC 2018


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

js pushed a commit to annotated tag debian/0.8.0-2
in repository node-async.

commit 85351dab1a585b4a94addebc0c92f544f95524d6
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Jan 7 16:43:55 2018 +0100

    Tidy rules: Rename variables libpkgname → pkg-js, nodepkgname → pkg-node.
---
 debian/rules | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index 46f2335..b384aed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,9 +20,9 @@ include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
 lib = $(patsubst node-%,%,$(DEB_SOURCE_PACKAGE))
+pkg-js = libjs-$(lib)
+pkg-node = node-$(lib)
 libdirname = $(lib)
-libpkgname = libjs-$(lib)
-nodepkgname = node-$(lib)
 
 DEB_INSTALL_DOCS_ALL += README.md
 
@@ -37,19 +37,19 @@ js-destdir = /usr/share/javascript/$(libdirname)
 node-destdir = /usr/lib/nodejs
 
 DEB_DH_INSTALL_ARGS_DEFAULT = $(js-stems:%=$(js-basedir)%.js) debian/*.min.js $(js-destdir)
-DEB_DH_INSTALL_ARGS_$(nodepkgname) = \
+DEB_DH_INSTALL_ARGS_$(pkg-node) = \
 	package.json \
 	$(js-stems:%=$(js-basedir)%.js) \
 	$(node-destdir)
 
-build/$(libpkgname):: $(js-min)
+build/$(pkg-js):: $(js-min)
 $(js-min): debian/%.min.js: $(js-basedir)%.js
 	uglifyjs -o $@ $<
 clean::
 	rm -f debian/*.js
 
 # Unset executable bit on library files
-binary-post-install/$(nodepkgname)::
+binary-post-install/$(pkg-node)::
 	chmod -x debian/$(cdbs_curpkg)$(node-destdir)/*
-binary-post-install/$(libpkgname)::
+binary-post-install/$(pkg-js)::
 	chmod -x debian/$(cdbs_curpkg)$(js-destdir)/*

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



More information about the Pkg-javascript-commits mailing list