···
curl https://github.com/NixOS/nixpkgs/commit/"$commitid" 2>/dev/null |
grep committed -B10 | grep 'href="/' |
sed -re 's@.* href="/@@; s@".*@@' |
···
[ -n "$NIXPKGS_GITHUB_NAME_CACHE" ] && {
echo "$emails" | while read email; do
line="$(grep "$email " "$NIXPKGS_GITHUB_NAME_CACHE")"
echo "$email $(fetchGithubName "$email")" >> \
"$NIXPKGS_GITHUB_NAME_CACHE"
···
50
-
sed -e 's/%/%25/g; s/ /%20/g; s/'\''/%27/g; s/"/%22/g; s/`/%60/g; s/\^/%5e/g; '
50
+
sed -e 's/%/%25/g; s/ /%20/g; s/'\''/%27/g; s/"/%22/g; s/`/%60/g; s/\^/%5e/g; '
54
-
sed -e 's/%20/ /g; s/%27/'\''/g; s/%22/"/g; s/%60/`/g; s/%5e/^/g; s/%25/%/g;';
54
+
sed -e 's/%20/ /g; s/%27/'\''/g; s/%22/"/g; s/%60/`/g; s/%5e/^/g; s/%25/%/g;';
n3="$(mktemp --suffix .n3)"
···
sparql="$(nix-build '<nixpkgs>' -Q -A apache-jena --no-out-link)/bin/sparql"
78
-
"$sparql" --results=TSV --data="$n3" "
78
+
"$sparql" --results=TSV --data="$n3" "
84
-
sed -re 's@<my://name/@@g; s@<my://@@g; s@>@@g;' |
84
+
sed -re 's@<my://name/@@g; s@<my://@@g; s@>@@g;' |
88
-
"$sparql" --results=TSV --data="$n3" "
88
+
"$sparql" --results=TSV --data="$n3" "
?x (<my://can-be>+ / <my://at-github>) ?y.
93
-
sed -re 's@<my://(name|github)/@@g; s@<my://@@g; s@>@@g;'
93
+
sed -re 's@<my://(name|github)/@@g; s@<my://@@g; s@>@@g;'
# Take first spelling option for every person
···
github_adder_script="$(mktemp)"
echo "$github_name_list" |
grep -E "$(echo "$name_list_canonical" | cut -f 2 |
sed -re 's/(.*)\t(.*)/s| \1$| \1\t\2|g;/' |
110
-
denormalize_name > "$github_adder_script"
110
+
denormalize_name > "$github_adder_script"
github_adder_script='/dev/null'