Skip to content

Commit 2c4558b

Browse files
committed
Add an updated new_contribs.sh and update README.md
1 parent 7401a85 commit 2c4558b

File tree

2 files changed

+24
-13
lines changed

2 files changed

+24
-13
lines changed

README.md

+12-13
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,20 @@ for pr in $(xsel -ob); do firefox https://github.com/mozilla/rust/pull/$pr; slee
1313
# write TWIR
1414
```
1515

16-
## How I get new contributors:
16+
Alternately use GitHub search:
1717

18-
new_contribs.sh 6/21/2014 > ~/entropy/newbies.txt
18+
```
19+
https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Amerged+updated%3A2014-11-03..2014-11-10
20+
```
21+
22+
## How I get new contributors:
23+
24+
Use the included `new_contribs.sh` script:
1925

20-
Where `new_contribs.sh` is:
26+
new_contribs.sh 6/21/2014
2127

22-
```sh
23-
#!/usr/bin/sh
28+
## Building
2429

25-
INITIAL_COMMIT=c01efc6
26-
START_COMMIT=`git log --before="$1" --author=bors --pretty=format:%H|head -n1`
27-
ALL_NAMES=`git log $INITIAL_COMMIT.. --pretty=format:%an|sort|uniq`
28-
OLD_NAMES=`git log $INITIAL_COMMIT..$START_COMMIT --pretty=format:%an|sort|uniq`
29-
echo "$OLD_NAMES">names_old.txt
30-
echo "$ALL_NAMES">names_all.txt
31-
diff names_old.txt names_all.txt
32-
rm names_old.txt names_all.txt
3330
```
31+
pelican content -s pelicanconf.py
32+
```

new_contribs.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
INITIAL_COMMIT=c01efc6
4+
START_COMMIT=`git log --before="$1" --author=bors --pretty=format:%H|head -n1`
5+
ALL_NAMES=`git log $INITIAL_COMMIT.. --pretty=format:%an|sort|uniq`
6+
OLD_NAMES=`git log $INITIAL_COMMIT..$START_COMMIT --pretty=format:%an|sort|uniq`
7+
echo "$OLD_NAMES">names_old.txt
8+
echo "$ALL_NAMES">names_all.txt
9+
names=`diff names_old.txt names_all.txt`
10+
rm names_old.txt names_all.txt
11+
names=`echo "$names" | grep \> | sed 's/^>/*/'`
12+
echo "$names"

0 commit comments

Comments
 (0)