[Pkg-javascript-commits] [eonasdan-bootstrap-datetimepicker] 02/04: Drop the banner from the minified javascript.
Mathias Behrle
mbehrle at moszumanska.debian.org
Tue Oct 10 08:37:59 UTC 2017
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 fa84418a030cc3ca5bf0d8a85f1dc2f22053a942
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Oct 10 09:48:52 2017 +0200
Drop the banner from the minified javascript.
Upstream stopped to add it, so we drop it, too.
---
debian/rules | 38 +-------------------------------------
1 file changed, 1 insertion(+), 37 deletions(-)
diff --git a/debian/rules b/debian/rules
index 6be2cd2..b2952a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,41 +2,6 @@
%:
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
@@ -55,11 +20,10 @@ override_dh_auto_clean:
# To avoid bloating the depends of this very package it will finally be better to create a separate doc package
rm -rf docs/
-
override_dh_auto_build:
# grunt is not (yet) packaged (#673727), so we mimic the tasks
# Grunt task uglify: Minify the js file
- uglifyjs --preamble "$$BANNER" -o bootstrap-datetimepicker.min.js src/js/bootstrap-datetimepicker.js
+ uglifyjs -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