Closed kangalio closed 5 years ago
Close. I don't know if I'd call it elegant...
Unfortunately, StepMania's CMake
generates a whole ton of files in its source code directory. I don't have a clean way to remove these, but they should be regenerated if the StepMania source code changes, because they are generated based on some of the source files. But, CMake
will not alkways regenerate these files if they exist, so... you basically have to do everything all over from the beginning in a fresh directory to be sure it'll work:
/usr/local/stepmania-5.x
directory, perhaps mv /usr/local/stepmania-5.1 /usr/local/stepmania-5.1.bak.d
make
commands, cd
into the stepmania
submodule and run git fetch --all; git checkout <commit or branch you want to build>
. Now the stepmania
submodule points to the code that you want to build.If the files that determine what CMake will generate haven't changed - and they probably won't change often - then you might be able to just:
cd stepmania
(the submodule)git fetch --all; git checkout <commit or branch you want to build>
cd ..
(you're now in this repository's directory)
make stepmania-prep
make stepmania-build
make stepmania-installThat will work, thanks
Is there an elegant way to update Stepmania using these scripts?
I would guess
But I'm not sure.