[Pkg-javascript-commits] [node-function-bind] 02/06: Prepare compenents
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Mar 11 22:05:13 UTC 2018
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-function-bind.
commit a55a2ef18bd749508a93f5e1dbfcc032d082984e
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Fri Mar 9 23:27:42 2018 +0100
Prepare compenents
---
debian/components/copyright | 14 +++++++++++
debian/{copyright => components/copyright.license} | 13 ----------
debian/components/install | 2 ++
debian/copyright | 3 ++-
debian/rules | 28 ++++++++++++++++++++++
5 files changed, 46 insertions(+), 14 deletions(-)
diff --git a/debian/components/copyright b/debian/components/copyright
new file mode 100644
index 0000000..b4b322b
--- /dev/null
+++ b/debian/components/copyright
@@ -0,0 +1,14 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: function-bind
+Upstream-Contact: https://github.com/Raynos/function-bind/issues
+Source: https://github.com/Raynos/function-bind
+
+Files: *
+Copyright: 2016 Raynos <raynos2 at gmail.com>
+License: Expat
+
+Files: debian/*
+Copyright: 2016 Ross Gammon <rossgammon at mail.dk>
+ 2018 Bastien Roucariès
+License: Expat
+
diff --git a/debian/copyright b/debian/components/copyright.license
similarity index 74%
copy from debian/copyright
copy to debian/components/copyright.license
index 377aa8a..a35933b 100644
--- a/debian/copyright
+++ b/debian/components/copyright.license
@@ -1,16 +1,3 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: function-bind
-Upstream-Contact: https://github.com/Raynos/function-bind/issues
-Source: https://github.com/Raynos/function-bind
-
-Files: *
-Copyright: 2016 Raynos <raynos2 at gmail.com>
-License: Expat
-
-Files: debian/*
-Copyright: 2016 Ross Gammon <rossgammon at mail.dk>
-License: Expat
-
License: Expat
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
diff --git a/debian/components/install b/debian/components/install
new file mode 100644
index 0000000..2fa15b1
--- /dev/null
+++ b/debian/components/install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/function-bind/
+*.js usr/lib/nodejs/function-bind/
diff --git a/debian/copyright b/debian/copyright
index 377aa8a..1aad6f0 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,4 +1,4 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: function-bind
Upstream-Contact: https://github.com/Raynos/function-bind/issues
Source: https://github.com/Raynos/function-bind
@@ -9,6 +9,7 @@ License: Expat
Files: debian/*
Copyright: 2016 Ross Gammon <rossgammon at mail.dk>
+ 2018 Bastien Roucariès
License: Expat
License: Expat
diff --git a/debian/rules b/debian/rules
index 789be3e..0dacd20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,20 @@
%:
dh $@
+define newline =
+
+
+endef
+define space =
+endef
+
+COMPONENTS=$(subst $(newline),$(space),$(shell set -e;cd debian/components && (find . -type d -printf "%f\n" | sed '/^[.]$$/d' )))
+COMPONENTS_FILES=$(foreach component,$(COMPONENTS),debian/components/$(component)/$(1))
+COPYRIGHT_COMPONENTS_FILES=$(call COMPONENTS_FILES,copyright)
+INSTALL_COMPONENTS_FILES=$(call COMPONENTS_FILES,install)
+MODULES_COMPONENTS=$(foreach component,$(COMPONENTS),$(shell echo $(component) | sed 's/^module[-]//g'))
+
+
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
tap -R spec test/*.js
@@ -15,3 +29,17 @@ else
@echo 'Skip test suite '
@echo '**********************************************************'
endif
+
+debian/copyright: debian/components/copyright $(COPYRIGHT_COMPONENTS_FILES) debian/components/copyright.license
+ cat debian/components/copyright $(COPYRIGHT_COMPONENTS_FILES) debian/components/copyright.license > debian/copyright
+
+debian/install: debian/components/install $(INSTALL_COMPONENTS_FILES)
+ cp -f debian/components/install debian/install
+ set -e; \
+ for c in $(COMPONENTS); do \
+ sed -e "/^./ s,^,$$c/,g" < debian/components/$$c/install >> debian/install; \
+ done;
+
+maint_rule: debian/copyright debian/install
+ $(info $(COPYRIGHT_COMPONENTS_FILES))
+ $(info run maint rules)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-function-bind.git
More information about the Pkg-javascript-commits
mailing list