summaryrefslogtreecommitdiffstats
path: root/maintainers/scripts/vanity.sh
diff options
context:
space:
mode:
authorVictor Engmark <vengmark@linz.govt.nz>2021-11-18 10:53:29 +1300
committerVictor Engmark <vengmark@linz.govt.nz>2021-11-18 10:53:29 +1300
commitcd838da194ca8aa795c732e330f7634d057da05b (patch)
treeba88d5751caa6f2f6c0df864d5f40c30f395e8e7 /maintainers/scripts/vanity.sh
parent57b496ea98bdbd633c48f16af1c69a196aaf963a (diff)
vanity: Indent with spaces part 2
More risky since it affects the inside of strings.
Diffstat (limited to 'maintainers/scripts/vanity.sh')
-rwxr-xr-xmaintainers/scripts/vanity.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/maintainers/scripts/vanity.sh b/maintainers/scripts/vanity.sh
index a6e82e039422..b879488165df 100755
--- a/maintainers/scripts/vanity.sh
+++ b/maintainers/scripts/vanity.sh
@@ -76,20 +76,20 @@ echo "$maintainers" | cut -f 2 | sed -e 's@.*@<my://name/&> <my://is-name> <my:/
sparql="$(nix-build '<nixpkgs>' -Q -A apache-jena --no-out-link)/bin/sparql"
name_list="$(
"$sparql" --results=TSV --data="$n3" "
- select ?x ?y ?g where {
- ?x <my://can-be>+ ?y.
- ?x <my://is-name> ?g.
+ select ?x ?y ?g where {
+ ?x <my://can-be>+ ?y.
+ ?x <my://is-name> ?g.
}
- " | tail -n +2 |
+ " | tail -n +2 |
sed -re 's@<my://name/@@g; s@<my://@@g; s@>@@g;' |
sort -k 2,3 -t ' '
)"
github_name_list="$(
"$sparql" --results=TSV --data="$n3" "
- select ?x ?y where {
- ?x (<my://can-be>+ / <my://at-github>) ?y.
+ select ?x ?y where {
+ ?x (<my://can-be>+ / <my://at-github>) ?y.
}
- " | tail -n +2 |
+ " | tail -n +2 |
sed -re 's@<my://(name|github)/@@g; s@<my://@@g; s@>@@g;'
)"