From 3e4bd73091b15f49c02f15d6b7b27d0e1a992780 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 28 Jul 2023 14:49:48 -0400 Subject: [PATCH] add revision # to packaged zip file --- package_debug_zip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package_debug_zip.sh b/package_debug_zip.sh index 6576120..36c5632 100644 --- a/package_debug_zip.sh +++ b/package_debug_zip.sh @@ -1,3 +1,4 @@ #!/bin/sh -mkdir Totte && cp -r bin/Debug/net7.0/* Totte/ && zip -r totte.zip Totte/ && rm -rf Totte +revision=r$(git log | egrep "^commit [0-9a-f]{40}$" | wc -l) +mkdir totte-$revision && cp -r bin/Debug/net7.0/* totte-$revision/ && zip -r totte-$revision.zip totte-$revision/ && rm -rf totte-$revision