Skip to content

Commit

Permalink
sphinx: Update authors
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Apr 4, 2020
1 parent 16caefd commit 4df42be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions docs/sphinx/about_project/authors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ Contributors
* Rohan Kumar <rohank.ce@gmail.com>
* Jonathan Sieber <mail@strfry.org>
* Gareth Marlow <gareth@eqsystems.io>
* Ivan <miklecivan3@gmail.com>
* Suiyi Fu <fusuiyi123@gmail.com>
* Vladimir Panov <quest201114@yandex.ru>
19 changes: 10 additions & 9 deletions scripts/authors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function add_if_new() {
}

function add_contributors() {
repo_dir="../$1"
out_file="$1"
repo_dir="../$2"

if [ ! -d "${repo_dir}" ]
then
Expand All @@ -55,7 +56,7 @@ function add_contributors() {
| cut -d' ' -f2- \
| while read line
do
add_if_new "${line}" "${file}"
add_if_new "${line}" "${out_file}" >> "${out_file}"
done
}

Expand All @@ -66,13 +67,13 @@ temp="$(mktemp)"

cat "$file" > "$temp"

add_contributors "roc" "$file" >> "$temp"
add_contributors "roc-tests" "$file" >> "$temp"
add_contributors "roc-go" "$file" >> "$temp"
add_contributors "roc-java" "$file" >> "$temp"
add_contributors "roc/vendor" "$file" >> "$temp"
add_contributors "openfec" "$file" >> "$temp"
add_contributors "dockerfiles" "$file" >> "$temp"
add_contributors "${temp}" "roc"
add_contributors "${temp}" "roc-tests"
add_contributors "${temp}" "roc-go"
add_contributors "${temp}" "roc-java"
add_contributors "${temp}" "roc/vendor"
add_contributors "${temp}" "openfec"
add_contributors "${temp}" "dockerfiles"

cat "$temp" > "$file"
rm "$temp"

0 comments on commit 4df42be

Please sign in to comment.