aboutsummaryrefslogtreecommitdiff
path: root/bash/fake-symlinks.sh
blob: 42a483bf74a30cae493c24769b9c44b96f0075be (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
#!/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