From fccd0d4983106616d6df9d5061cafeda9bda675e Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 5 Aug 2023 15:47:15 +1000 Subject: [PATCH] use latest modification of package as version --- buildall.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildall.sh b/buildall.sh index 95211d3..07e046f 100755 --- a/buildall.sh +++ b/buildall.sh @@ -1,5 +1,6 @@ #!/bin/bash for dir in $(find -maxdepth 1 -not -path '*/\.*' -not -path '\.' -type d | cut -d '/' -f 2); do - echo lua makepkg.lua "$dir" "$1" "$(git rev-parse --short HEAD)" - lua makepkg.lua "$dir" "$1" "$(git rev-parse --short HEAD)" + VER="$(git log -n 1 --pretty=format:%h -- "$dir")" + VER=${VER:-$2} + lua5.3 makepkg.lua "$dir" "$1" "$VER" done