www_duniayetu/install.sh

30 lines
851 B
Bash
Raw Permalink Normal View History

2023-12-05 13:22:57 +00:00
#!/usr/bin/env bash
set -e
2023-12-15 19:38:43 +00:00
GITEA_INSTANCE_URL="https://git.ourworld.tf"
GITEA_USERNAME="threefold_coop"
mkdir -p ~/.vmodules/freeflowuniverse
mkdir -p ~/code/gitea/$GITEA_USERNAME
pushd ~/code/gitea/$GITEA_USERNAME
# Clone crystallib repository from Gitea
git clone $GITEA_INSTANCE_URL/$GITEA_USERNAME/crystallib.git
2023-12-05 13:28:17 +00:00
pushd crystallib
2023-12-05 13:26:35 +00:00
git checkout development_db
2023-12-05 13:28:17 +00:00
popd
2023-12-05 13:26:35 +00:00
2023-12-15 19:38:43 +00:00
# Create symbolic link to crystallib in ~/.vmodules/freeflowuniverse
ln -s ~/code/gitea/$GITEA_USERNAME/crystallib/crystallib ~/.vmodules/freeflowuniverse/crystallib
# Clone webcomponents repository from Gitea
git clone $GITEA_INSTANCE_URL/$GITEA_USERNAME/webcomponents.git
# Create symbolic link to webcomponents in ~/.vmodules/freeflowuniverse
ln -s ~/code/gitea/$GITEA_USERNAME/webcomponents/webcomponents ~/.vmodules/freeflowuniverse/webcomponents
2023-12-05 13:26:35 +00:00
popd
2023-12-15 19:38:43 +00:00
echo "INSTALL OK"