From caea5070494a64e96fa40f16af024d22ed6b961a Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sun, 19 May 2013 07:47:09 -0400 Subject: [PATCH] add a script which regenerates the launchpad user list this is based on the comments in the file, but an actual script is even better. fixed to handle changes in the launchpad mapper Change-Id: If9612bc605ac4731516c3864a8c4dff87bc5a598 Reviewed-on: https://review.openstack.org/29695 Reviewed-by: Monty Taylor Approved: Sean Dague Tested-by: Jenkins --- openstack-config/regen.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 openstack-config/regen.sh diff --git a/openstack-config/regen.sh b/openstack-config/regen.sh new file mode 100755 index 0000000..17b4643 --- /dev/null +++ b/openstack-config/regen.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +echo "Refreshing git repos" +HERE=`pwd` +cd ~/git/openstack +for i in *; do + cd $i && git pull && cd .. +done +cd $HERE + +echo "Collecting revisions..." + +grep -v '^#' havana-all | \ + while read project revisions; do \ + cd ~/git/openstack/$project; \ + git log | awk -F '[<>]' '/^Author:/ {print $2}'; \ + done | sort | uniq | grep -v '\((none)\|\.local\)$' > tmp + +echo "Building email list..." + +sed 's/ /\n/' < aliases >> tmp +sed 's/ /\n/' < other-aliases >> tmp +(sort | uniq | grep -v '\((none)\|\.local\)$') < tmp > emails.txt + +echo "Mapping to launchpad ids" + +../tools/with_venv.sh python ../launchpad/map-email-to-lp-name.py \ + $(cat emails.txt) | sort > launchpad-ids.txt