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 <mordred@inaugust.com> Approved: Sean Dague <sean@dague.net> Tested-by: Jenkins
This commit is contained in:
28
openstack-config/regen.sh
Executable file
28
openstack-config/regen.sh
Executable file
@@ -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
|
Reference in New Issue
Block a user