add revision # to packaged zip file

This commit is contained in:
Colin McMillen 2023-07-28 14:49:48 -04:00
parent fe02e13a11
commit 3e4bd73091

View File

@ -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