blob: 55ec8d4811f29a866f2b3930cd7c44ca70868525 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/usr/bin/env bash
if [[ -n "$GITHUB_TOKEN" ]]; then
envsubst < "$DOTFILES/git/gitconfig.ini" > ~/.gitconfig
fi
SRHT_REPOS=(website cement)
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"
done
for repo in "${SRHT_REPOS[@]}"; do
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
|