Polls

Default Game Speed

Log in to vote!

Latest Posts

Topic: compile.sh - alternate location?

Tibor
Joined: 2009-03-23, 23:24
Posts: 1267
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2019-09-29, 20: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, 15:56
Posts: 3058
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2019-09-29, 21: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
Joined: 2009-03-23, 23:24
Posts: 1267
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2019-09-29, 22: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, 15:56
Posts: 3058
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2019-09-30, 09: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, 09:59

Busy indexing nil values

Top Quote