[Pkg-javascript-commits] [eonasdan-bootstrap-datetimepicker] 04/06: Adding a license banner like upstream to the minified javascript file.
Mathias Behrle
mbehrle at moszumanska.debian.org
Thu Sep 8 12:12:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
mbehrle pushed a commit to branch master
in repository eonasdan-bootstrap-datetimepicker.
commit f46ced9b63df7ab4f1bf50471ab93f769b10933a
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Sep 6 21:07:12 2016 +0200
Adding a license banner like upstream to the minified javascript file.
---
debian/rules | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index c6b8d11..6be2cd2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,41 @@
%:
dh $@
+VERSION = $(shell dpkg-parsechangelog -SVersion | cut -d'-' -f 1)
+define BANNER
+/*! version : $(VERSION)
+ =========================================================
+ bootstrap-datetimejs
+ https://github.com/Eonasdan/bootstrap-datetimepicker
+ Copyright (c) 2015 Jonathan Peterson
+ =========================================================
+ */
+/*
+ The MIT License (MIT)
+
+ Copyright (c) 2015 Jonathan Peterson
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ */
+endef
+export BANNER
+
override_dh_auto_clean:
dh_clean
# Remove preprocessed files
@@ -24,7 +59,7 @@ override_dh_auto_clean:
override_dh_auto_build:
# grunt is not (yet) packaged (#673727), so we mimic the tasks
# Grunt task uglify: Minify the js file
- uglifyjs -o bootstrap-datetimepicker.min.js src/js/bootstrap-datetimepicker.js
+ uglifyjs --preamble "$$BANNER" -o bootstrap-datetimepicker.min.js src/js/bootstrap-datetimepicker.js
# Grunt task less: Compile and compress the css files
lessc --include-path=src:/usr/share/javascript/ src/less/bootstrap-datetimepicker-build.less bootstrap-datetimepicker.css
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/eonasdan-bootstrap-datetimepicker.git
More information about the Pkg-javascript-commits
mailing list