razterizer / Pilot_Episode

My first terminal based game. It uses libraries Core, Termin8or and 8Beat.
MIT License
3 stars 1 forks source link

Add a script that downloads dependencies. #7

Closed thibautbuchert closed 5 months ago

thibautbuchert commented 5 months ago

This PR adds a script that downloads dependencies. It ended up looking a bit like git submodules, excepts that dependencies are downloaded outside the working copy.

All the dependencies for a given project are stored as a small configuration file with one dependency per line. Each line contains the working copy path, the repository URL, and the commit that will be checked out. working copy paths are relative to the current directory, so for example in the case of this pilot episode you would run the script from the directory above the working copy of Pilot_Episode like this:

Pilot_Episode/fetch-dependencies.py Pilot_Episode/dependencies

I did not use the working copy of Pilot_Episode as the base directory for dependency working copy paths because I do not like relative paths that contain ...

A few points about the script:

thibautbuchert commented 5 months ago

@razterizer Seems that I don't have any right to add you as a reviewer. What do you think of this script ?

thibautbuchert commented 5 months ago

I will also update the README

thibautbuchert commented 5 months ago

I don't understand half of what you've done so I guess there's not much to comment on. I think perhaps I should just pull it and test it out on this new branch and see how it works in action.

If you could test it on mac that could be great !