1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

[enh] add shell script which gather email addresses of packagers.

This commit is contained in:
Moul 2016-03-08 17:49:13 +01:00
parent 3385ac28cf
commit aeadc9b0a0

18
get_packager_email_addresses.sh Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/bash
if [ ! $1 ] || [ $1 = "-h" ] || [ $1 = "--help" ]; then
echo "Specify builds apps list as parameters" ; exit
fi
pattern="\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b"
# Grep email addresses from builds apps lists arguments
grep -E -o $pattern $* | \
# Eclude example addresses
grep -v jon@doe.net | grep -vi domain | grep -v johndoe@example.com | \
# Sort, remove duplicate, remove file name with many arguments
sort | uniq | cut -d : -f 2 # | wc -l
# Get number of packagers: uncomment upper line