commonist icon indicating copy to clipboard operation
commonist copied to clipboard

Handle dependencies's download and installation.

Open hugolpz opened this issue 7 years ago • 1 comments

CURL / MAKE appraoch

$curl -L -C - 'http://site.net/file.zip' -o ../data/file.zip

My cheatsheet for :

GIT SUBMODULE approach

An alternative.

0. Get the main repository ritschwumm/commonist.git:

git clone "https://github.com/<user>/<project>.git"
cd ./<project>/               # here, `git branch` gives "master", you can create an other one to test around

1. Add submodule project2.git to the ./project2place/ folder of your project.git:

git submodule add -- "https://github.com/<project2user>/<project2name>.git" "./project2place/"

2.Commit cycle :

git commit -am "dev,git: add submodule https://github.com/<project2user>/<project2name>.git" 
git push

Cloning the repository for git +1.6.5 :

git clone --recursive git://github.com/foo/bar.git
cd bar

Updating repository:

git submodule update --init --recursive

Installing

When code is on user's computer, running the installation is up to your project's specifics.

hugolpz avatar Jan 19 '18 07:01 hugolpz

good idea

ritschwumm avatar Jan 20 '18 12:01 ritschwumm