summaryrefslogtreecommitdiffstats
path: root/debian/dh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:23:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:23:08 +0000
commit25161eab0977cf62f77af868be3fc698888776ea (patch)
treeea9037f8066dfc7c0a7d7b898822a56fec71c324 /debian/dh
parentAdding upstream version 110.0.1. (diff)
downloadfirefox-debian.tar.xz
firefox-debian.zip
Adding debian version 110.0.1-1.debian/110.0.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/dh')
-rwxr-xr-xdebian/dh25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/dh b/debian/dh
new file mode 100755
index 0000000000..5b43536dd4
--- /dev/null
+++ b/debian/dh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Wrapper around dh to enable parallelism in debian/rules if not already
+# enabled.
+
+case "$MAKEFLAGS" in
+*-j*)
+ # Already enabled, do nothing.
+ ;;
+*)
+ parallel=
+ for opt in "$DEB_BUILD_OPTIONS"; do
+ case "$opt" in
+ parallel=*)
+ parallel=${opt#parallel=}
+ ;;
+ esac
+ done
+ if [ -n "$parallel" ]; then
+ export MAKEFLAGS="-j$parallel${MAKEFLAGS:+ $MAKEFLAGS}"
+ fi
+ ;;
+esac
+
+exec dh "$@"