diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-26 09:00:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 09:00:43 +0200 |
commit | 7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef (patch) | |
tree | 3b1bfe9958b324b5bd0768b48bfa76aaaa3eecc7 /etc/generate-repos.sh | |
parent | afcdb1184799526f20954e475af990254d772cd4 (diff) | |
parent | e65cf1d265210738a9b3c0b811fbfeffa0741c39 (diff) | |
download | hello-nix-7dc9a7b9107b2607e9870d7fc92fb2d40505f7ef.tar.gz |
Merge pull request #2 from aehlig/import-rules
Import rust rules and add a minimal example
Diffstat (limited to 'etc/generate-repos.sh')
-rwxr-xr-x | etc/generate-repos.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/generate-repos.sh b/etc/generate-repos.sh new file mode 100755 index 0000000..8bd1ca6 --- /dev/null +++ b/etc/generate-repos.sh @@ -0,0 +1,15 @@ +#!/bin/sh + + +readonly ROOT=$(readlink -f $(dirname $0)/..) + +: ${RULES_CC_REPO:=https://github.com/just-buildsystem/rules-cc} +: ${RULES_CC_BRANCH:=master} +: ${RULES_RUST_REPO:=https://github.com/just-buildsystem/rules-rust} +: ${RULES_RUST_BRANCH:=master} + +just-import-git -C ${ROOT}/etc/repos.template.json \ + --as rules -b ${RULES_CC_BRANCH} ${RULES_CC_REPO} rules \ + | just-import-git -C - \ + --as rules-rust -b ${RULES_RUST_BRANCH} ${RULES_RUST_REPO} rules-rust \ + | hdump > ${ROOT}/etc/repos.json |