summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/0001-do-not-update-copyright-year.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian/0001-do-not-update-copyright-year.patch')
-rw-r--r--debian/patches/debian/0001-do-not-update-copyright-year.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/debian/0001-do-not-update-copyright-year.patch b/debian/patches/debian/0001-do-not-update-copyright-year.patch
new file mode 100644
index 0000000..d71507e
--- /dev/null
+++ b/debian/patches/debian/0001-do-not-update-copyright-year.patch
@@ -0,0 +1,15 @@
+Author: Xavier Guimard <yadd@debian.org>
+Description: Avoi updating copyright year during build to allow reproducible builds.
+
+diff -Naurp bootstrap-html.orig/build/banner.js bootstrap-html/build/banner.js
+--- bootstrap-html.orig/build/banner.js
++++ bootstrap-html/build/banner.js
+@@ -6,7 +6,7 @@ const year = new Date().getFullYear()
+ function getBanner(pluginFilename) {
+ return `/*!
+ * Bootstrap${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
+- * Copyright 2011-${year} ${pkg.author}
++ * Copyright 2011-2023 ${pkg.author}
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
+ */`
+ }