nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

vanity: Indent with spaces part 2

More risky since it affects the inside of strings.

+7 -7
+7 -7
maintainers/scripts/vanity.sh
··· 76 76 sparql="$(nix-build '<nixpkgs>' -Q -A apache-jena --no-out-link)/bin/sparql" 77 77 name_list="$( 78 78 "$sparql" --results=TSV --data="$n3" " 79 - select ?x ?y ?g where { 80 - ?x <my://can-be>+ ?y. 81 - ?x <my://is-name> ?g. 79 + select ?x ?y ?g where { 80 + ?x <my://can-be>+ ?y. 81 + ?x <my://is-name> ?g. 82 82 } 83 - " | tail -n +2 | 83 + " | tail -n +2 | 84 84 sed -re 's@<my://name/@@g; s@<my://@@g; s@>@@g;' | 85 85 sort -k 2,3 -t ' ' 86 86 )" 87 87 github_name_list="$( 88 88 "$sparql" --results=TSV --data="$n3" " 89 - select ?x ?y where { 90 - ?x (<my://can-be>+ / <my://at-github>) ?y. 89 + select ?x ?y where { 90 + ?x (<my://can-be>+ / <my://at-github>) ?y. 91 91 } 92 - " | tail -n +2 | 92 + " | tail -n +2 | 93 93 sed -re 's@<my://(name|github)/@@g; s@<my://@@g; s@>@@g;' 94 94 )" 95 95