From ecad9636640be124c054e39bd540e9e45f151468 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Mon, 8 Feb 2021 23:05:01 +0300 Subject: [PATCH] change crlf to lf for source updater script --- update_sources.sh | 48 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/update_sources.sh b/update_sources.sh index 3e0a9c0..74759ac 100755 --- a/update_sources.sh +++ b/update_sources.sh @@ -1,24 +1,24 @@ -#! /usr/bin/env nix-shell -#! nix-shell -i bash -p bash curl nix-prefetch-git gnused jq - -# Run from within the directory which needs the templates.json/schemes.json - -# Not very safe - should be cleaner & could be more parallel -# should always be permitted to run to completion - -generate_sources () { - out=$1 - curl "https://raw.githubusercontent.com/chriskempson/base16-${out}-source/master/list.yaml"\ - | sed -nE "s~^([-_[:alnum:]]+): *(.*)~\1 \2~p"\ - | while read name src; do - echo "{\"key\":\"$name\",\"value\":" - nix-prefetch-git $src - echo "}" - done\ - | jq -s ".|del(.[].value.date)|from_entries"\ - > $out.json -} - -generate_sources templates & -generate_sources schemes & -wait +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p bash curl nix-prefetch-git gnused jq + +# Run from within the directory which needs the templates.json/schemes.json + +# Not very safe - should be cleaner & could be more parallel +# should always be permitted to run to completion + +generate_sources () { + out=$1 + curl "https://raw.githubusercontent.com/chriskempson/base16-${out}-source/master/list.yaml"\ + | sed -nE "s~^([-_[:alnum:]]+): *(.*)~\1 \2~p"\ + | while read name src; do + echo "{\"key\":\"$name\",\"value\":" + nix-prefetch-git $src + echo "}" + done\ + | jq -s ".|del(.[].value.date)|from_entries"\ + > $out.json +} + +generate_sources templates & +generate_sources schemes & +wait