diff options
author | aszlig <aszlig@nix.build> | 2018-02-22 05:02:03 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-02-22 05:02:03 +0100 |
commit | 8c52f23b831949deb708de4c463fd1f6251e6728 (patch) | |
tree | 8f4a5e97383ad5750971fb2ae6eb448493f12a89 /machines/aszlig/kzerza.nix | |
parent | 77a0f47d06f3d21b78c7f34a129bc3f75d69fbf7 (diff) |
build-game: Properly find sourceRoot
So far we only checked for the source root by checking only one level of directories, so for example if the source code is unpacked into something like "a/b/c" and only "c" contains files, the previous implementation would set the source root to be "a". In addition we didn't do a check on the type of the contents, so for example if the archive contains only *one* file, that *file* itself would be set as the source root and the chdir to that will fail later. What we do now is recursively search through directories in order to find the last directory that does not contain *only* a subdirectory. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines/aszlig/kzerza.nix')
0 files changed, 0 insertions, 0 deletions