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:
parent
3385ac28cf
commit
aeadc9b0a0
1 changed files with 18 additions and 0 deletions
18
get_packager_email_addresses.sh
Executable file
18
get_packager_email_addresses.sh
Executable 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
|
Loading…
Add table
Reference in a new issue