about summary refs log tree commit diff
path: root/mkdeps
diff options
context:
space:
mode:
authorEmma@Rory& <root@rory.gay>2023-08-14 05:07:51 +0200
committerEmma@Rory& <root@rory.gay>2023-08-14 05:11:21 +0200
commitaa7026a17ededf7c181ed269c6388491d96e1b1e (patch)
tree963b45cebbfefb3c5cebaf4ba7134a0e32eb0147 /mkdeps
parentAdd latest code before splitting projects (diff)
downloadMatrixUtils-aa7026a17ededf7c181ed269c6388491d96e1b1e.tar.xz
Split LibMatrix into submodule
Diffstat (limited to 'mkdeps')
-rwxr-xr-xmkdeps31
1 files changed, 24 insertions, 7 deletions
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