fix(tools/depot-build): handle multiple levels of subdirectories
Change-Id: I99511c17d635b0222e1c933432007e6f8ea8cf85 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1655 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
ea488b5705
commit
e6ccbc9f35
1 changed files with 1 additions and 1 deletions
|
@ -4,5 +4,5 @@
|
|||
pkgs.writeShellScriptBin "depot-build" ''
|
||||
TARGET=$(git rev-parse --show-prefix | sed 's|/$||')
|
||||
echo "Building //$TARGET"
|
||||
nix-build -A $(echo $TARGET | sed 's|/|.|') $(${pkgs.git}/bin/git rev-parse --show-toplevel)
|
||||
nix-build -A $(echo $TARGET | sed 's|/|.|g') $(${pkgs.git}/bin/git rev-parse --show-toplevel)
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue