aboutsummaryrefslogblamecommitdiff
path: root/bash/fake-symlinks.sh
blob: cc83aa688af0696f6d723d465431a1c06d0294be (plain) (tree)
1
2
3
4
5
6
7
8
9

                   

                                                           

  
                                    
                                   
 
                                  




                                                                                                              
    

                                                                                                  

    


                      

                                                                






                                                                                                                         
#!/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"
  if [[ "${repo}" != "dotfiles" ]]; then
    cp "${DOTFILES}/utils.nix" "${SRHT_REPOS_PATH}/${repo}/utils.nix"
    mkdir -p "${SRHT_REPOS_PATH}/${repo}/docs"
    cp "${DOTFILES}/docs/README.css" "${SRHT_REPOS_PATH}/${repo}/docs/README.css"
  fi
  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