From aa7026a17ededf7c181ed269c6388491d96e1b1e Mon Sep 17 00:00:00 2001 From: "Emma@Rory&" Date: Mon, 14 Aug 2023 05:07:51 +0200 Subject: Split LibMatrix into submodule --- mkdeps | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'mkdeps') diff --git a/mkdeps b/mkdeps index b577e03..e6bea58 100755 --- a/mkdeps +++ b/mkdeps @@ -1,11 +1,28 @@ #!/usr/bin/env nix-shell -#!nix-shell -i "bash -x" -p bash nuget-to-nix +#!nix-shell -i "bash -x" -p bash nuget-to-nix git dotnet-sdk_7 nix curl jq yq +projects=( + MatrixRoomUtils.Web +) + find . | grep -E '(bin|obj)$' | while read d; do rm -rf $d & done wait -MSBUILDLIVELOGGER=false dotnet restore --packages=packages -v n --ucr -nuget-to-nix packages | tee deps.nix -du -sh packages -rm -rf packages -nix flake update -git add deps.nix flake.lock +execDir=$(pwd) + +for p in $projects +do + ( + cd $p + pwd + MSBUILDLIVELOGGER=false dotnet restore --packages=packages -v n --ucr + #dotnet --list-sdks + ${execDir}/nuget-to-nix.sh packages | tee deps.nix + #where nuget-to-nix + pwd + du -sh packages + rm -rf packages + git add deps.nix + ) + nix flake update + git add flake.lock +done -- cgit 1.4.1