File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 18
18
# changes. If there are incorrect additions fix it by editing
19
19
# .mailmap and re-running the script.
20
20
21
+ if [ " ${1-} " = " " ]; then
22
+ echo " Usage: add-authors.sh 1.0.0..rust-lang/master"
23
+ exit 1
24
+ fi
25
+
21
26
set -u -e
22
27
23
28
range=" $1 "
@@ -27,6 +32,6 @@ tmp_file="./AUTHORS.txt.tmp"
27
32
old_authors=" $( cat " $authors_file " | tail -n +2 | sed " /^$/d" | sort) "
28
33
new_authors=" $( git log " $range " --format=" %aN <%aE>" | sort | uniq) "
29
34
30
- echo " Rust was written by these fine people:\n " > " $tmp_file "
31
- echo " $old_authors \n $new_authors " | sort | uniq >> " $tmp_file "
35
+ printf " %s\n\n " " Rust was written by these fine people:" > " $tmp_file "
36
+ printf " %s\n%s " " $old_authors " " $new_authors " | sort | uniq >> " $tmp_file "
32
37
mv -f " $tmp_file " " $authors_file "
You can’t perform that action at this time.
0 commit comments