summaryrefslogtreecommitdiff
path: root/bootstrap-sitesbuilder
blob: 16d937be5a7b1fb8048cc5486a4cf1cccee072c3 (plain)
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
#!/bin/bash

# Bootstrap the Taler setup for the user account that
# is currently logged in.

# Generates a setup for a single user,
# including a postgresql DB.

set -eu

BRANCH=master
REPOS="www docs-landing twister"

cd $HOME

for component in $REPOS; do
  if ! test -d $HOME/$component; then
    git clone git://git.taler.net/$component.git
  fi
done

for component in $REPOS; do
  echo "Checking out $component to $BRANCH"
  git -C $HOME/$component checkout $BRANCH
done

mkdir stamps

ln -sf ../deployment/taler-sitesbuild/Makefile stamps/
ln -sf ../deployment/taler-sitesbuild/invalidate.sh stamps/