#!/usr/bin/env bash if [[ -n "$GITHUB_TOKEN" ]]; then envsubst < "$DOTFILES/git/gitconfig.ini" > ~/.gitconfig fi SRHT_REPOS=(website cement dotfiles) SRHT_REPOS_PATH="$HOME/dev/libre" for repo in "${SRHT_REPOS[@]}"; do REPO="$repo" envsubst < "$DOTFILES/templates/sr-ht-build.yaml" > "$SRHT_REPOS_PATH/$repo/.build.yml" cp "$DOTFILES/nixos/utils.nix" "$SRHT_REPOS_PATH/$repo/utils.nix" if [[ "$repo" != "website" ]]; then REPO="$repo" envsubst < "$DOTFILES/templates/env.sh" > "$SRHT_REPOS_PATH/$repo/env.sh" fi done mkdir -p ~/.tmuxinator for template in "$DOTFILES"/tmux/projects/*; do cp "$template" "$HOME/.tmuxinator/$(basename "$template")" done # DHALL_BUILD_REPOS=(website) # for repo in "${DHALL_BUILD_REPOS[@]}"; do # dhall 2> /dev/null <<< "./sr-ht-build.dhall \"$repo\"" | dhall-to-json --pretty > "$SRHT_REPOS_PATH/$repo/.build.yml" # done