aboutsummaryrefslogtreecommitdiff
path: root/bash/fake-symlinks.sh
blob: 687395aff8355deed903cbf5a5c57f01447485ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

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

repos=("org.euandreh.misc" "org.euandreh.http")

for repo in ${repos[@]}; do
  cp "$DOTFILES/git/gitlab-ci.yml" "$DOTFILES/../$repo/.gitlab-ci.yml"
  cp "$DOTFILES/git/default.nix" "$DOTFILES/../$repo/default.nix"
done


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