Commit c58aac71 authored by Fabian's avatar Fabian
Browse files

Makefile now handles submodules and user can choose between https (default) and ssh

parent 0010534d
[submodule "Betl2"]
path = Betl2
url = git@gitlab.math.ethz.ch:NumPDE/Betl2.git
[submodule "3rd_Party/ethGenericGrid"]
path = 3rd_Party/ethGenericGrid
url = git@gitlab.math.ethz.ch:NumPDE/EthGenericGrid.git
all:
cp .gitlab-modules/betl2-module .gitmodules
git submodule sync
git submodule update --init # Update Betl2 submodule
cp .gitlab-modules/ethGG-module Betl2/.gitmodules # Fix EthGenericGrid submodule
git submodule sync --recursive
git submodule update --init --recursive
# This Makefile handles the submodules
# A user can choose between HTTPS (default) and SSH
# Changes to .gitmodules have to be made in .gitlab-modules/
## HTTPS
https:
cp .gitlab-modules/betl2-module-https .gitmodules # Change Betl2 source
git submodule sync # Change config if necessary
git submodule update --init # Update Betl2 submodule
cp .gitlab-modules/ethGG-module-https Betl2/.gitmodules # Change EthGenericGrid source
git submodule sync --recursive # Change config if necessary
git submodule update --init --recursive # Update EthGenericGrid submodule
## SSH
ssh:
cp .gitlab-modules/betl2-module-ssh .gitmodules # Change Betl2 source
git submodule sync # Change config if necessary
git submodule update --init # Update Betl2 submodule
cp .gitlab-modules/ethGG-module-ssh Betl2/.gitmodules # Change EthGenericGrid source
git submodule sync --recursive # Change config if necessary
git submodule update --init --recursive # Update EthGenericGrid submodule
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment