#!/usr/bin/env bash if [[ -n "$GITHUB_TOKEN" ]]; then cat $DOTFILES/git/gitconfig.ini | envsubst > ~/.gitconfig fi SRHT_REPOS=("website" "mentat" "cement" "pouchdb-materialized-view" "pires" "superlogin" "superlogin-client") SRHT_REPOS_PATH="$HOME/dev/libre" for repo in ${SRHT_REPOS[@]}; do cat $DOTFILES/templates/sr-ht-build.yaml | REPO="$repo" envsubst > "$SRHT_REPOS_PATH/$repo/.build.yml" done for repo in ${SRHT_REPOS[@]}; do if [[ "$repo" != "website" ]]; then cat "$DOTFILES/templates/env.sh" | REPO="$repo" envsubst > "$SRHT_REPOS_PATH/$repo/env.sh" fi done