summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-05-31 22:04:36 +0200
committervarac <varacanero@zeromail.org>2017-05-31 22:04:36 +0200
commit20a7c1eac51e8e8c7044555f70d456bc6c3659a0 (patch)
tree5a80cad4a1777e53bb4a51b2cbfd5946e24a7ee9
parentea3795879da3502b14577144466ff9d35d4eb358 (diff)
Added repos, show all commits but not subrepos
-rwxr-xr-xget_contributors.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/get_contributors.sh b/get_contributors.sh
index 175ecc4..49ed580 100755
--- a/get_contributors.sh
+++ b/get_contributors.sh
@@ -1,11 +1,13 @@
#!/bin/bash
# Script to generate a list of contributors
+# Included: All repos from https://leap.se/git/?o=age that show activity since 2y
+# Excluded: puppet_*
-REPOS=(bitmask_android bitmask_client bitmask-dev bonafide couchdb_scripts couchrest_changes deploy_test dl_bitmask_net docker faith Infrastructure junit keymanager leap_assets leap_ca leap_cli leap_client_dist leap_client_launcher leap_cloudadmin leap_db leap_mail leap_mx leap_pistonadmin leap_platform leap_platform_gource leap_presentations leap_pycommon leap_se leap_vagrant leap_web leap_website lut mail_breaker minimal-debian-vagrant nickserver platform_test pysqlcipher reserve_usernames ruby_srp scripts soledad tapicero )
+REPOS=(bitmask_android bitmask_bundler bitmask_client bitmask-dev bitmask_help bitmask_launcher bitmask_net bitmask_thunderbird bonafide couchdb_scripts couchrest_changes deploy_test dl_bitmask_net docker faith keymanager leap_assets leap_ca leap_cli leap_client_launcher leap_cloudadmin leap_db leap_doc leap-keyring leap_mail leap_mx leap_pistonadmin leap_platform leap_presentations leap_pycommon leap_se leap_vagrant leap_web leap_website libsodium lut mail_breaker nickserver packer_vagrant platform_test pymemoryhole pysqlcipher python_gnupg-ng python_pycryptopp python_srp python_zmq reserve_usernames ruby_srp scripts soledad soledad-perf sqlcipher srp_js tapicero version_report )
# shellcheck disable=SC2016
-GET_CONTRIBUTORS='git log --use-mailmap --format="%aN <%aE>" | awk "{arr[\$0]++} END{for (i in arr){print arr[i], i;}}" | sort -rn | cut -d" " -f2- | sort'
+GET_CONTRIBUTORS='git log --branches --not --remotes=subrepo --use-mailmap --format="%aN <%aE>" | awk "{arr[\$0]++} END{for (i in arr){print arr[i], i;}}" | sort -rn | cut -d" " -f2- | sort'
ROOTDIR="${HOME}/leap/git"
LISTFILE='/tmp/contributors.txt'
@@ -18,7 +20,9 @@ TEAM='(email@of.contributor.org|email@of_other_contributor.net)'
for repo in "${REPOS[@]}"
do
cd "${ROOTDIR}/${repo}" || exit 1
- contributors=$(eval "$GET_CONTRIBUTORS" | egrep -iv "$TEAM")
+ # Uncomment for first run to make sure all repos are up to date
+ # git fetch
+ contributors=$(eval "$GET_CONTRIBUTORS" | egrep --text -iv "$TEAM")
if [ -n "$contributors" ]
then
echo "${repo}:"