aboutsummaryrefslogtreecommitdiff
path: root/bash/fake-symlinks.sh
blob: 336f0c591d0b19e0c932fe3cad558619be74d78a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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