Currently Online

Latest Posts

Topic: compile.sh - alternate location?

Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2019-09-29, 19:16

Hi,

Is it possible to install the widelands to alternate location with compile.sh script? The idea is I would like to have mulitple installs from multiple branches. E.g. one installation for training the AI another for some random coding or testing other branches.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2019-09-29, 20:51

You could get lightweight clones, like this:

git clone https://github.com/widelands/widelands.git aitraining --depth 1
git clone https://github.com/widelands/widelands.git testing --depth 1

This will put it into different directories without taking forever to download.

You could also experiment with git worktree - I haven't gotten around to trying out that option myself yet.


Busy indexing nil values

Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2019-09-29, 21:09

git clone --depth looks interesting, does it allow modification and push? Anyway I will consult manuals..


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2019-09-30, 08:59

Yes it does face-smile.png

You could get a bit more history just in case, e.g. with --depth 50

Edited: 2019-09-30, 08:59

Busy indexing nil values

Top Quote