about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-10-28 20:27:35 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-10-28 20:27:35 -0400
commit319e97bfcf8a995f549d79d9c80d0df17587e643 (patch)
treee25304b41dc16204f1644e655fcd91e4afd4ca8f /src
parentf1bc7f558f46b63fc7c69f5437e69af3462af345 (diff)
parent049e729bcb703772a251d6876835497e6947702c (diff)
downloadrust-319e97bfcf8a995f549d79d9c80d0df17587e643.tar.gz
rust-319e97bfcf8a995f549d79d9c80d0df17587e643.zip
Rollup merge of #29437 - brson:authors, r=alexcrichton
Diffstat (limited to 'src')
-rw-r--r--src/etc/add-authors.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/etc/add-authors.sh b/src/etc/add-authors.sh
index 917053cc205..3ae0ec73957 100644
--- a/src/etc/add-authors.sh
+++ b/src/etc/add-authors.sh
@@ -18,6 +18,11 @@
 # changes. If there are incorrect additions fix it by editing
 # .mailmap and re-running the script.
 
+if [ "${1-}" = "" ]; then
+    echo "Usage: add-authors.sh 1.0.0..rust-lang/master"
+    exit 1
+fi
+
 set -u -e
 
 range="$1"
@@ -27,6 +32,6 @@ tmp_file="./AUTHORS.txt.tmp"
 old_authors="$(cat "$authors_file" | tail -n +2 | sed "/^$/d" | sort)"
 new_authors="$(git log "$range" --format="%aN <%aE>" | sort | uniq)"
 
-echo "Rust was written by these fine people:\n" > "$tmp_file"
-echo "$old_authors\n$new_authors" | sort | uniq >> "$tmp_file"
+printf "%s\n\n" "Rust was written by these fine people:" > "$tmp_file"
+printf "%s\n%s" "$old_authors" "$new_authors" | sort | uniq >> "$tmp_file"
 mv -f "$tmp_file" "$authors_file"