aboutsummaryrefslogtreecommitdiff
path: root/bash/fake-symlinks.sh
blob: 3a5e885e6333f6450e7e9daf9cdb4e3e19367da9 (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
32
33
#!/usr/bin/env bash

if [[ -n "$GITHUB_TOKEN" ]]; then
  envsubst < "$DOTFILES/git/gitconfig.ini" > ~/.gitconfig
fi


SRHT_REPOS=(website mentat cement pouchdb-materialized-view pires superlogin-client)
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

TMUXINATOR_TEMPLATES=(annex pires songbooks sosps)

for template in "${TMUXINATOR_TEMPLATES[@]}"; do
  cp "$DOTFILES/tmux/projects/$template.yml" "$HOME/.tmuxinator/$template.yml"
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