Skip to content

Commit 4df42be

Browse files
committed
sphinx: Update authors
1 parent 16caefd commit 4df42be

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

docs/sphinx/about_project/authors.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ Contributors
3535
* Rohan Kumar <rohank.ce@gmail.com>
3636
* Jonathan Sieber <mail@strfry.org>
3737
* Gareth Marlow <gareth@eqsystems.io>
38+
* Ivan <miklecivan3@gmail.com>
39+
* Suiyi Fu <fusuiyi123@gmail.com>
40+
* Vladimir Panov <quest201114@yandex.ru>

scripts/authors.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ function add_if_new() {
4343
}
4444

4545
function add_contributors() {
46-
repo_dir="../$1"
46+
out_file="$1"
47+
repo_dir="../$2"
4748

4849
if [ ! -d "${repo_dir}" ]
4950
then
@@ -55,7 +56,7 @@ function add_contributors() {
5556
| cut -d' ' -f2- \
5657
| while read line
5758
do
58-
add_if_new "${line}" "${file}"
59+
add_if_new "${line}" "${out_file}" >> "${out_file}"
5960
done
6061
}
6162

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

6768
cat "$file" > "$temp"
6869

69-
add_contributors "roc" "$file" >> "$temp"
70-
add_contributors "roc-tests" "$file" >> "$temp"
71-
add_contributors "roc-go" "$file" >> "$temp"
72-
add_contributors "roc-java" "$file" >> "$temp"
73-
add_contributors "roc/vendor" "$file" >> "$temp"
74-
add_contributors "openfec" "$file" >> "$temp"
75-
add_contributors "dockerfiles" "$file" >> "$temp"
70+
add_contributors "${temp}" "roc"
71+
add_contributors "${temp}" "roc-tests"
72+
add_contributors "${temp}" "roc-go"
73+
add_contributors "${temp}" "roc-java"
74+
add_contributors "${temp}" "roc/vendor"
75+
add_contributors "${temp}" "openfec"
76+
add_contributors "${temp}" "dockerfiles"
7677

7778
cat "$temp" > "$file"
7879
rm "$temp"

0 commit comments

Comments
 (0)