summaryrefslogtreecommitdiffstats
path: root/maintainers
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2018-01-15 19:08:27 -0600
committerThomas Tuegel <ttuegel@mailbox.org>2018-01-15 19:08:27 -0600
commit1c004da67eed5bca59a9f6016027ef52cad428bf (patch)
tree4f9ef38c850efedb8f899b88b49c8870611f0ef9 /maintainers
parent04239641b5233fce7407b1ad7522dd33f259a6cf (diff)
parent7e5346c5844afcbe77d88d0729d1c45d0d615195 (diff)
Merge branch 'bugfix/kwidgetsaddons/5.42.1' into merge/qt-5.10.0
Diffstat (limited to 'maintainers')
-rwxr-xr-xmaintainers/scripts/rebuild-amount.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/maintainers/scripts/rebuild-amount.sh b/maintainers/scripts/rebuild-amount.sh
index 098a8c88cb7e..1a54cada8af6 100755
--- a/maintainers/scripts/rebuild-amount.sh
+++ b/maintainers/scripts/rebuild-amount.sh
@@ -1,9 +1,16 @@
#!/usr/bin/env bash
set -e
+# --print: avoid dependency on environment
+optPrint=
+if [ "$1" == "--print" ]; then
+ optPrint=true
+ shift
+fi
+
if [ "$#" != 1 ] && [ "$#" != 2 ]; then
cat <<-EOF
- Usage: $0 commit-spec [commit-spec]
+ Usage: $0 [--print] commit-spec [commit-spec]
You need to be in a git-controlled nixpkgs tree.
The current state of the tree will be used if the second commit is missing.
EOF
@@ -113,3 +120,8 @@ newPkgs "${tree[1]}" "${tree[2]}" '--argstr system "x86_64-linux"' > "$newlist"
sed -n 's/\([^. ]*\.\)*\([^. ]*\) .*$/\2/p' < "$newlist" \
| sort | uniq -c
+if [ -n "$optPrint" ]; then
+ echo
+ cat "$newlist"
+fi
+