diff options
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 |