summaryrefslogtreecommitdiff
path: root/librewolf/debian/dh
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-04-16 16:51:25 +0000
committerB. Stack <bgstack15@gmail.com>2022-04-16 16:51:25 +0000
commit4aa31a2f1a060439447f8de3b1674b6e0524c7e2 (patch)
treec6028dac4de4e3be8bfb49223ac931303e6c57d2 /librewolf/debian/dh
parentMerge branch 'veracrypt-bump' into 'master' (diff)
parentlw 98.0 stackrpms rc1 (diff)
downloadstackrpms-4aa31a2f1a060439447f8de3b1674b6e0524c7e2.tar.gz
stackrpms-4aa31a2f1a060439447f8de3b1674b6e0524c7e2.tar.bz2
stackrpms-4aa31a2f1a060439447f8de3b1674b6e0524c7e2.zip
Merge branch 'librewolf-bump' into 'master'
librewolf 98 See merge request bgstack15/stackrpms!293
Diffstat (limited to 'librewolf/debian/dh')
-rwxr-xr-xlibrewolf/debian/dh25
1 files changed, 25 insertions, 0 deletions
diff --git a/librewolf/debian/dh b/librewolf/debian/dh
new file mode 100755
index 0000000..5b43536
--- /dev/null
+++ b/librewolf/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 "$@"
bgstack15