From a60badb7fee8f174e4656f4c5026ca705e3e95e9 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 3 Oct 2022 16:35:04 +0200 Subject: [PATCH] Fix getting latest git tag --- a/broadcom-bt-firmware/SlackBuild | 2 +- a/nct6687d/SlackBuild | 2 +- a/pine64-platform-scripts/SlackBuild | 2 +- a/rpi-firmware-nonfree/SlackBuild | 2 +- ap/amdgpud/SlackBuild | 2 +- ap/bandwhich/SlackBuild | 2 +- ap/bat/SlackBuild | 2 +- ap/btm/SlackBuild | 2 +- ap/checkssl/SlackBuild | 2 +- ap/delta/SlackBuild | 2 +- ap/diskus/SlackBuild | 2 +- ap/dive/SlackBuild | 2 +- ap/dust/SlackBuild | 2 +- ap/esptool/SlackBuild | 2 +- ap/exa/SlackBuild | 2 +- ap/f3/SlackBuild | 2 +- ap/fd/SlackBuild | 2 +- ap/getssl/SlackBuild | 2 +- ap/grex/SlackBuild | 2 +- ap/ht/SlackBuild | 2 +- ap/hyperfine/SlackBuild | 2 +- ap/icr/SlackBuild | 2 +- ap/ijq/SlackBuild | 2 +- ap/ion/SlackBuild | 2 +- ap/ledger/SlackBuild | 2 +- ap/lsd/SlackBuild | 2 +- ap/lsyncd/SlackBuild | 2 +- ap/mdcat/SlackBuild | 2 +- ap/motion/SlackBuild | 2 +- ap/nu/SlackBuild | 2 +- ap/nvtop/SlackBuild | 2 +- ap/procs/SlackBuild | 2 +- ap/ripgrep/SlackBuild | 2 +- ap/rustup/SlackBuild | 2 +- ap/sd/SlackBuild | 2 +- ap/starship/SlackBuild | 2 +- ap/stow/SlackBuild | 2 +- ap/tldr/SlackBuild | 2 +- ap/tv/SlackBuild | 2 +- ap/viu/SlackBuild | 2 +- ap/ycmd/SlackBuild | 2 +- ap/ytop/SlackBuild | 2 +- d/ameba/SlackBuild | 2 +- d/chruby/SlackBuild | 2 +- d/crystal/SlackBuild | 4 ++-- d/dtc/SlackBuild | 2 +- d/factor/SlackBuild | 2 +- d/gforth/SlackBuild | 2 +- d/newrpl/SlackBuild | 2 +- d/qbe/SlackBuild | 2 +- d/rbspy/SlackBuild | 2 +- d/retroforth/SlackBuild | 2 +- d/rpn/SlackBuild | 2 +- d/ruby-install/SlackBuild | 2 +- d/scry/SlackBuild | 2 +- d/scryer-prolog/SlackBuild | 2 +- d/wabt/SlackBuild | 2 +- l/apcu/SlackBuild | 2 +- l/basu/SlackBuild | 2 +- l/fmt/SlackBuild | 2 +- l/hinnant-date/SlackBuild | 2 +- l/libucl/SlackBuild | 2 +- l/python-cairo-cffi/SlackBuild | 2 +- l/raylib/SlackBuild | 2 +- l/sdl12-compat/SlackBuild | 2 +- l/spdlog/SlackBuild | 2 +- lua/luarocks/SlackBuild | 2 +- n/pluxml/SlackBuild | 2 +- wayland/cage/SlackBuild | 2 +- wayland/dwl/SlackBuild | 15 +++++++++------ wayland/foot/SlackBuild | 2 +- wayland/imv/SlackBuild | 2 +- wayland/kanshi/SlackBuild | 2 +- wayland/lswt/SlackBuild | 2 +- wayland/mako/SlackBuild | 2 +- wayland/nwg-look/SlackBuild | 2 +- wayland/qtile-extras/SlackBuild | 2 +- wayland/qtile/SlackBuild | 2 +- wayland/river/SlackBuild | 2 +- wayland/seatd/SlackBuild | 2 +- wayland/sfwbar/SlackBuild | 2 +- wayland/sway/SlackBuild | 2 +- wayland/swaybg/SlackBuild | 2 +- wayland/swayidle/SlackBuild | 2 +- wayland/swaylock/SlackBuild | 2 +- wayland/swayr/SlackBuild | 2 +- wayland/wlopm/SlackBuild | 2 +- wayland/wlr-randr/SlackBuild | 2 +- wayland/wlroots/SlackBuild | 2 +- xap/alacritty/SlackBuild | 2 +- xap/alttab/SlackBuild | 2 +- xap/brightnessctl/SlackBuild | 2 +- xap/gammastep/SlackBuild | 2 +- xap/i3status-rust/SlackBuild | 2 +- xap/image-roll/SlackBuild | 2 +- xap/kitty/SlackBuild | 2 +- xap/leocad/SlackBuild | 2 +- xap/nextcloud-client/SlackBuild | 2 +- xap/polybar/SlackBuild | 2 +- xap/radeon-profile/SlackBuild | 2 +- xap/rkvm/SlackBuild | 2 +- xap/wezterm/SlackBuild | 2 +- xap/x48/SlackBuild | 2 +- xap/x49gp/SlackBuild | 2 +- y/cboard/SlackBuild | 2 +- y/steamtinkerlaunch/SlackBuild | 2 +- 106 files changed, 115 insertions(+), 112 deletions(-) diff --git a/a/broadcom-bt-firmware/SlackBuild b/a/broadcom-bt-firmware/SlackBuild index db111128..f944d696 100755 --- a/a/broadcom-bt-firmware/SlackBuild +++ b/a/broadcom-bt-firmware/SlackBuild @@ -25,7 +25,7 @@ rm -fr $PKG # mise en place [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/a/nct6687d/SlackBuild b/a/nct6687d/SlackBuild index b641fa23..b0958f17 100755 --- a/a/nct6687d/SlackBuild +++ b/a/nct6687d/SlackBuild @@ -39,7 +39,7 @@ case $VERSION in VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" ;; latest) - VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) + VERSION=$(git describe --tags --abbrev=0) git checkout $VERSION ;; *) diff --git a/a/pine64-platform-scripts/SlackBuild b/a/pine64-platform-scripts/SlackBuild index f6c4f545..f947ecca 100755 --- a/a/pine64-platform-scripts/SlackBuild +++ b/a/pine64-platform-scripts/SlackBuild @@ -26,7 +26,7 @@ rm -fr $PKG # mise en place [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/a/rpi-firmware-nonfree/SlackBuild b/a/rpi-firmware-nonfree/SlackBuild index a848251d..e4173ad5 100755 --- a/a/rpi-firmware-nonfree/SlackBuild +++ b/a/rpi-firmware-nonfree/SlackBuild @@ -26,7 +26,7 @@ rm -fr $PKG # mise en place [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY ( cd $REPOSITORY; git pull ) -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/amdgpud/SlackBuild b/ap/amdgpud/SlackBuild index 33a2c689..48b2a9ee 100755 --- a/ap/amdgpud/SlackBuild +++ b/ap/amdgpud/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/bandwhich/SlackBuild b/ap/bandwhich/SlackBuild index 81a9566d..86773045 100755 --- a/ap/bandwhich/SlackBuild +++ b/ap/bandwhich/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/bat/SlackBuild b/ap/bat/SlackBuild index 193c9f15..b1357177 100755 --- a/ap/bat/SlackBuild +++ b/ap/bat/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/btm/SlackBuild b/ap/btm/SlackBuild index 7ecb7911..6bdd55ce 100755 --- a/ap/btm/SlackBuild +++ b/ap/btm/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout -f $VERSION diff --git a/ap/checkssl/SlackBuild b/ap/checkssl/SlackBuild index 26554d97..273abd40 100755 --- a/ap/checkssl/SlackBuild +++ b/ap/checkssl/SlackBuild @@ -27,7 +27,7 @@ mkdir -p $PKG [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/delta/SlackBuild b/ap/delta/SlackBuild index 1fdd1104..98bf5665 100755 --- a/ap/delta/SlackBuild +++ b/ap/delta/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/diskus/SlackBuild b/ap/diskus/SlackBuild index 44c15600..11d50830 100755 --- a/ap/diskus/SlackBuild +++ b/ap/diskus/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/dive/SlackBuild b/ap/dive/SlackBuild index e1eaa3f3..e4c37d10 100755 --- a/ap/dive/SlackBuild +++ b/ap/dive/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/dust/SlackBuild b/ap/dust/SlackBuild index 23806e73..5953bbd5 100755 --- a/ap/dust/SlackBuild +++ b/ap/dust/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/esptool/SlackBuild b/ap/esptool/SlackBuild index 738b565f..1d1871f9 100755 --- a/ap/esptool/SlackBuild +++ b/ap/esptool/SlackBuild @@ -26,7 +26,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/exa/SlackBuild b/ap/exa/SlackBuild index a05304be..e4e513e0 100755 --- a/ap/exa/SlackBuild +++ b/ap/exa/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/f3/SlackBuild b/ap/f3/SlackBuild index 7dad2b86..b1c97d1c 100755 --- a/ap/f3/SlackBuild +++ b/ap/f3/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/fd/SlackBuild b/ap/fd/SlackBuild index c77337d0..a0c77e41 100755 --- a/ap/fd/SlackBuild +++ b/ap/fd/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/getssl/SlackBuild b/ap/getssl/SlackBuild index f1b28fdd..4340feec 100755 --- a/ap/getssl/SlackBuild +++ b/ap/getssl/SlackBuild @@ -27,7 +27,7 @@ mkdir -p $PKG [ ! -e $REPOSITORY ] && git clone https://github.com/${GITHUB_REPO}.git $REPOSITORY cd $REPOSITORY git pull --all -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/grex/SlackBuild b/ap/grex/SlackBuild index 1b20ab7f..40eb5834 100755 --- a/ap/grex/SlackBuild +++ b/ap/grex/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ht/SlackBuild b/ap/ht/SlackBuild index 1e91c527..258f0963 100755 --- a/ap/ht/SlackBuild +++ b/ap/ht/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/hyperfine/SlackBuild b/ap/hyperfine/SlackBuild index f3ccbca9..7ed4352e 100755 --- a/ap/hyperfine/SlackBuild +++ b/ap/hyperfine/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/icr/SlackBuild b/ap/icr/SlackBuild index df37830b..0c74782d 100755 --- a/ap/icr/SlackBuild +++ b/ap/icr/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ijq/SlackBuild b/ap/ijq/SlackBuild index 67349279..68220283 100755 --- a/ap/ijq/SlackBuild +++ b/ap/ijq/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ion/SlackBuild b/ap/ion/SlackBuild index 637ca7ad..826dc11f 100755 --- a/ap/ion/SlackBuild +++ b/ap/ion/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ledger/SlackBuild b/ap/ledger/SlackBuild index 00a47cb2..bfd9caf2 100755 --- a/ap/ledger/SlackBuild +++ b/ap/ledger/SlackBuild @@ -49,7 +49,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/lsd/SlackBuild b/ap/lsd/SlackBuild index 57736d1a..a4f4b5c5 100755 --- a/ap/lsd/SlackBuild +++ b/ap/lsd/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/lsyncd/SlackBuild b/ap/lsyncd/SlackBuild index b547ab9a..de3d8331 100755 --- a/ap/lsyncd/SlackBuild +++ b/ap/lsyncd/SlackBuild @@ -31,7 +31,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/mdcat/SlackBuild b/ap/mdcat/SlackBuild index 55d7468f..a5403138 100755 --- a/ap/mdcat/SlackBuild +++ b/ap/mdcat/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/motion/SlackBuild b/ap/motion/SlackBuild index 48861a9f..585f074b 100755 --- a/ap/motion/SlackBuild +++ b/ap/motion/SlackBuild @@ -67,7 +67,7 @@ git pull --all cp -R $REPOSITORY $PRGNAM cd $PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION chown -R root:root . diff --git a/ap/nu/SlackBuild b/ap/nu/SlackBuild index d27a7553..da8793f3 100755 --- a/ap/nu/SlackBuild +++ b/ap/nu/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/nvtop/SlackBuild b/ap/nvtop/SlackBuild index aef864ee..6c7345ad 100755 --- a/ap/nvtop/SlackBuild +++ b/ap/nvtop/SlackBuild @@ -31,7 +31,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/procs/SlackBuild b/ap/procs/SlackBuild index 930e95cb..1f42b9d8 100755 --- a/ap/procs/SlackBuild +++ b/ap/procs/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ripgrep/SlackBuild b/ap/ripgrep/SlackBuild index 362945b6..fe999dbc 100755 --- a/ap/ripgrep/SlackBuild +++ b/ap/ripgrep/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/rustup/SlackBuild b/ap/rustup/SlackBuild index 9e10dd02..712609b1 100755 --- a/ap/rustup/SlackBuild +++ b/ap/rustup/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/sd/SlackBuild b/ap/sd/SlackBuild index 03d9b047..2da1c008 100755 --- a/ap/sd/SlackBuild +++ b/ap/sd/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/starship/SlackBuild b/ap/starship/SlackBuild index b4c76f08..61d6e3d3 100755 --- a/ap/starship/SlackBuild +++ b/ap/starship/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/stow/SlackBuild b/ap/stow/SlackBuild index f38a4a0a..b5b2ee3a 100755 --- a/ap/stow/SlackBuild +++ b/ap/stow/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/tldr/SlackBuild b/ap/tldr/SlackBuild index 1c9eeb80..3cd63c3b 100755 --- a/ap/tldr/SlackBuild +++ b/ap/tldr/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/tv/SlackBuild b/ap/tv/SlackBuild index 6ed80ded..21bd2415 100755 --- a/ap/tv/SlackBuild +++ b/ap/tv/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/viu/SlackBuild b/ap/viu/SlackBuild index 50c8d15e..72f5e11d 100755 --- a/ap/viu/SlackBuild +++ b/ap/viu/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ycmd/SlackBuild b/ap/ycmd/SlackBuild index 0e359f11..1da5ee77 100755 --- a/ap/ycmd/SlackBuild +++ b/ap/ycmd/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/ap/ytop/SlackBuild b/ap/ytop/SlackBuild index c4defd40..2691a510 100755 --- a/ap/ytop/SlackBuild +++ b/ap/ytop/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/ameba/SlackBuild b/d/ameba/SlackBuild index f811028b..4ca2d72a 100755 --- a/d/ameba/SlackBuild +++ b/d/ameba/SlackBuild @@ -31,7 +31,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/chruby/SlackBuild b/d/chruby/SlackBuild index 01e138d1..b12e7250 100755 --- a/d/chruby/SlackBuild +++ b/d/chruby/SlackBuild @@ -34,7 +34,7 @@ rm -fr $PKG $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/crystal/SlackBuild b/d/crystal/SlackBuild index bcc3e453..7de0abf2 100755 --- a/d/crystal/SlackBuild +++ b/d/crystal/SlackBuild @@ -28,7 +28,7 @@ git pull --all cp -R "$REPOSITORY" $TMP/ cd "$TMP/$PRGNAM/" || exit -[ "$VERSION" == "latest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0) [ "$VERSION" == "" ] && VERSION=trunk if [ "$VERSION" == "trunk" ]; then VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" @@ -63,7 +63,7 @@ git pull --all cp -R "$SHARDS_REPOSITORY" "$TMP/" cd $TMP/$SHARDS_PRGNAM/ -[ "$SHARDS_VERSION" == "latest" ] && SHARDS_VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "$SHARDS_VERSION" == "latest" ] && SHARDS_VERSION=$(git describe --tags --abbrev=0) [ "$SHARDS_VERSION" == "" ] && SHARDS_VERSION=trunk if [ "$SHARDS_VERSION" == "trunk" ]; then SHARDS_VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" diff --git a/d/dtc/SlackBuild b/d/dtc/SlackBuild index 5b15720a..68cb13cc 100755 --- a/d/dtc/SlackBuild +++ b/d/dtc/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/factor/SlackBuild b/d/factor/SlackBuild index 168a65aa..3f63332f 100755 --- a/d/factor/SlackBuild +++ b/d/factor/SlackBuild @@ -29,7 +29,7 @@ cd $TMP [ -e $TMP/$PRGNAM ] && rm -fr $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/gforth/SlackBuild b/d/gforth/SlackBuild index 19a54381..bc97ff54 100755 --- a/d/gforth/SlackBuild +++ b/d/gforth/SlackBuild @@ -30,7 +30,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/newrpl/SlackBuild b/d/newrpl/SlackBuild index ea81cf58..bd8ca3f4 100755 --- a/d/newrpl/SlackBuild +++ b/d/newrpl/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="$(git rev-list --count master)_git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/qbe/SlackBuild b/d/qbe/SlackBuild index cdf6c6a7..a9d9bd76 100755 --- a/d/qbe/SlackBuild +++ b/d/qbe/SlackBuild @@ -33,7 +33,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xdevelop" ] && git checkout develop && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/rbspy/SlackBuild b/d/rbspy/SlackBuild index 866d0075..262105eb 100755 --- a/d/rbspy/SlackBuild +++ b/d/rbspy/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/retroforth/SlackBuild b/d/retroforth/SlackBuild index 1da63abe..72b657bc 100755 --- a/d/retroforth/SlackBuild +++ b/d/retroforth/SlackBuild @@ -29,7 +29,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/rpn/SlackBuild b/d/rpn/SlackBuild index b38c777b..c0284773 100755 --- a/d/rpn/SlackBuild +++ b/d/rpn/SlackBuild @@ -33,7 +33,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xdevelop" ] && git checkout develop && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/ruby-install/SlackBuild b/d/ruby-install/SlackBuild index 4d79cadc..1b1e0035 100755 --- a/d/ruby-install/SlackBuild +++ b/d/ruby-install/SlackBuild @@ -31,7 +31,7 @@ rm -fr $PKG $TMP/$PRGNAM cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/scry/SlackBuild b/d/scry/SlackBuild index 07df24f5..44bf3561 100755 --- a/d/scry/SlackBuild +++ b/d/scry/SlackBuild @@ -31,7 +31,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/scryer-prolog/SlackBuild b/d/scryer-prolog/SlackBuild index 4126d83f..35781f9f 100755 --- a/d/scryer-prolog/SlackBuild +++ b/d/scryer-prolog/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/d/wabt/SlackBuild b/d/wabt/SlackBuild index b0bd31cf..e2d65bda 100755 --- a/d/wabt/SlackBuild +++ b/d/wabt/SlackBuild @@ -31,7 +31,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/l/apcu/SlackBuild b/l/apcu/SlackBuild index 620261ab..a6439e59 100755 --- a/l/apcu/SlackBuild +++ b/l/apcu/SlackBuild @@ -37,7 +37,7 @@ git pull --all cp -R $REPOSITORY $PRGNAM cd $PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/l/basu/SlackBuild b/l/basu/SlackBuild index d5563754..ed7e3dbc 100755 --- a/l/basu/SlackBuild +++ b/l/basu/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION diff --git a/l/fmt/SlackBuild b/l/fmt/SlackBuild index ab401a57..3119d6de 100755 --- a/l/fmt/SlackBuild +++ b/l/fmt/SlackBuild @@ -31,7 +31,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/l/hinnant-date/SlackBuild b/l/hinnant-date/SlackBuild index 4bb1f0c3..79e94e97 100755 --- a/l/hinnant-date/SlackBuild +++ b/l/hinnant-date/SlackBuild @@ -36,7 +36,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$( cd $REPOSITORY && git log -1 --format=%h_%ad --date=format:%Y.%m.%d )" || git checkout $VERSION diff --git a/l/libucl/SlackBuild b/l/libucl/SlackBuild index a20943d0..bb17fae4 100755 --- a/l/libucl/SlackBuild +++ b/l/libucl/SlackBuild @@ -36,7 +36,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/l/python-cairo-cffi/SlackBuild b/l/python-cairo-cffi/SlackBuild index fb5e9904..2ec3895c 100755 --- a/l/python-cairo-cffi/SlackBuild +++ b/l/python-cairo-cffi/SlackBuild @@ -34,7 +34,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/l/raylib/SlackBuild b/l/raylib/SlackBuild index 9028ba1b..25e2db6e 100755 --- a/l/raylib/SlackBuild +++ b/l/raylib/SlackBuild @@ -34,7 +34,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/l/sdl12-compat/SlackBuild b/l/sdl12-compat/SlackBuild index 75f05567..437c5199 100755 --- a/l/sdl12-compat/SlackBuild +++ b/l/sdl12-compat/SlackBuild @@ -30,7 +30,7 @@ cd "$TMP" || exit cp -R "$REPOSITORY" "${TMP:?}/$PRGNAM" cd "$TMP/$PRGNAM" || exit -[ "$VERSION" == "latest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0) [ "$VERSION" == "" ] && VERSION=trunk if [ "$VERSION" == "trunk" ]; then VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" diff --git a/l/spdlog/SlackBuild b/l/spdlog/SlackBuild index ea8d7dba..7025bfae 100755 --- a/l/spdlog/SlackBuild +++ b/l/spdlog/SlackBuild @@ -32,7 +32,7 @@ cd $TMP cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/lua/luarocks/SlackBuild b/lua/luarocks/SlackBuild index a6dbb852..7e55f5f4 100755 --- a/lua/luarocks/SlackBuild +++ b/lua/luarocks/SlackBuild @@ -38,7 +38,7 @@ cd $TMP cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM cd $PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/n/pluxml/SlackBuild b/n/pluxml/SlackBuild index 6148cc0b..894759e4 100755 --- a/n/pluxml/SlackBuild +++ b/n/pluxml/SlackBuild @@ -34,7 +34,7 @@ REPOSITORY=/home/installs/SlackBuilds/_repositories/$PRGNAM cp -R $REPOSITORY $PKG/$VHOSTROOT/htdocs cd $PKG/$VHOSTROOT/htdocs -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/cage/SlackBuild b/wayland/cage/SlackBuild index dd475f12..469ca960 100755 --- a/wayland/cage/SlackBuild +++ b/wayland/cage/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/dwl/SlackBuild b/wayland/dwl/SlackBuild index 5689302c..db4ccbf5 100755 --- a/wayland/dwl/SlackBuild +++ b/wayland/dwl/SlackBuild @@ -78,10 +78,11 @@ cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ case $VERSION in trunk) + git checkout wlroots-next VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" ;; latest) - VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) + VERSION=$(git describe --tags --abbrev=0) git checkout $VERSION ;; *) @@ -92,12 +93,12 @@ esac # fix to correct man pages directory path sed -i 's/share/man/g' config.mk -# compile with XWayland support -XWAYLAND=${XWAYLAND:-yes} -[ "$XWAYLAND" = "yes" ] && patch -p1 <$CWD/sbo-patches/use-XWayland.patch +# # compile with XWayland support +# XWAYLAND=${XWAYLAND:-yes} +# [ "$XWAYLAND" = "yes" ] && patch -p1 <$CWD/sbo-patches/use-XWayland.patch # autostart patch for stuff like swaybg -patch -p1 < $CWD/sbo-patches/autostart.patch +#patch -p1 < $CWD/sbo-patches/autostart.patch mkdir -p $PKG/usr/share/wayland-sessions @@ -122,12 +123,14 @@ find -L . \ ### that will change the default terminal from 'alacritty' ### to 'foot'. -find $CWD/patches/ -name \*.patch -exec patch --verbose -p1 -i {} \; +#find $CWD/patches/ -name \*.patch -exec patch --verbose -p1 -i {} \; make \ OPTS="$SLKCFLAGS" \ PREFIX=/usr \ MANPREFIX=/usr/man \ + XWAYLAND=-DXWAYLAND \ + XLIBS=xcb xcb-icccm make PREFIX=$PKG/usr install diff --git a/wayland/foot/SlackBuild b/wayland/foot/SlackBuild index becb83be..25f628f4 100755 --- a/wayland/foot/SlackBuild +++ b/wayland/foot/SlackBuild @@ -29,7 +29,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/imv/SlackBuild b/wayland/imv/SlackBuild index 0d938965..2eea5541 100755 --- a/wayland/imv/SlackBuild +++ b/wayland/imv/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/kanshi/SlackBuild b/wayland/kanshi/SlackBuild index fa0adb58..c6fa633d 100755 --- a/wayland/kanshi/SlackBuild +++ b/wayland/kanshi/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/lswt/SlackBuild b/wayland/lswt/SlackBuild index ad7b41c8..f52e7042 100755 --- a/wayland/lswt/SlackBuild +++ b/wayland/lswt/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/mako/SlackBuild b/wayland/mako/SlackBuild index dbc18e41..8879c701 100755 --- a/wayland/mako/SlackBuild +++ b/wayland/mako/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/nwg-look/SlackBuild b/wayland/nwg-look/SlackBuild index b91f4253..7cd82ce8 100755 --- a/wayland/nwg-look/SlackBuild +++ b/wayland/nwg-look/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R "$REPOSITORY" $TMP/ cd "$TMP/$PRGNAM/" || exit -[ "$VERSION" == "latest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "$VERSION" == "latest" ] && VERSION=$(git describe --tags --abbrev=0) [ "$VERSION" == "" ] && VERSION=trunk if [ "$VERSION" == "trunk" ]; then VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" diff --git a/wayland/qtile-extras/SlackBuild b/wayland/qtile-extras/SlackBuild index f3d6821a..9f6f3611 100755 --- a/wayland/qtile-extras/SlackBuild +++ b/wayland/qtile-extras/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/qtile/SlackBuild b/wayland/qtile/SlackBuild index 98cbd218..97a298f0 100755 --- a/wayland/qtile/SlackBuild +++ b/wayland/qtile/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/river/SlackBuild b/wayland/river/SlackBuild index 2d77b0dc..0d8f20b4 100755 --- a/wayland/river/SlackBuild +++ b/wayland/river/SlackBuild @@ -33,7 +33,7 @@ git submodule update cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/seatd/SlackBuild b/wayland/seatd/SlackBuild index 4f4e58ce..43be011c 100755 --- a/wayland/seatd/SlackBuild +++ b/wayland/seatd/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/sfwbar/SlackBuild b/wayland/sfwbar/SlackBuild index bce2a82e..d6167986 100755 --- a/wayland/sfwbar/SlackBuild +++ b/wayland/sfwbar/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/sway/SlackBuild b/wayland/sway/SlackBuild index f19a4c0a..612625e0 100755 --- a/wayland/sway/SlackBuild +++ b/wayland/sway/SlackBuild @@ -36,7 +36,7 @@ case $VERSION in VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" ;; latest) - VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) + VERSION=$(git describe --tags --abbrev=0) git checkout "$VERSION" ;; *) diff --git a/wayland/swaybg/SlackBuild b/wayland/swaybg/SlackBuild index a3011b1e..12489b8f 100755 --- a/wayland/swaybg/SlackBuild +++ b/wayland/swaybg/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/swayidle/SlackBuild b/wayland/swayidle/SlackBuild index d306a34a..8a22f342 100755 --- a/wayland/swayidle/SlackBuild +++ b/wayland/swayidle/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/swaylock/SlackBuild b/wayland/swaylock/SlackBuild index bf7ca0fb..78e78c52 100755 --- a/wayland/swaylock/SlackBuild +++ b/wayland/swaylock/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/swayr/SlackBuild b/wayland/swayr/SlackBuild index 00eb49ec..455307bf 100755 --- a/wayland/swayr/SlackBuild +++ b/wayland/swayr/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/wlopm/SlackBuild b/wayland/wlopm/SlackBuild index 32493b82..724fa469 100755 --- a/wayland/wlopm/SlackBuild +++ b/wayland/wlopm/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/wlr-randr/SlackBuild b/wayland/wlr-randr/SlackBuild index 30790613..e5eedb2e 100755 --- a/wayland/wlr-randr/SlackBuild +++ b/wayland/wlr-randr/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/wayland/wlroots/SlackBuild b/wayland/wlroots/SlackBuild index fa15df95..aafa8d66 100755 --- a/wayland/wlroots/SlackBuild +++ b/wayland/wlroots/SlackBuild @@ -37,7 +37,7 @@ case $VERSION in VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" ;; latest) - VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) + VERSION=$(git describe --tags --abbrev=0) git checkout $VERSION ;; *) diff --git a/xap/alacritty/SlackBuild b/xap/alacritty/SlackBuild index 08a677c1..b0d64618 100755 --- a/xap/alacritty/SlackBuild +++ b/xap/alacritty/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/alttab/SlackBuild b/xap/alttab/SlackBuild index 3a7cba19..130e0b5f 100755 --- a/xap/alttab/SlackBuild +++ b/xap/alttab/SlackBuild @@ -34,7 +34,7 @@ cp -R $REPOSITORY $TMP/$PRGNAM # Preparation cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/brightnessctl/SlackBuild b/xap/brightnessctl/SlackBuild index 05e210e1..474baf89 100755 --- a/xap/brightnessctl/SlackBuild +++ b/xap/brightnessctl/SlackBuild @@ -32,7 +32,7 @@ cd $TMP cp -R $REPOSITORIES/$PRGNAM $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/gammastep/SlackBuild b/xap/gammastep/SlackBuild index f15b026b..c664b579 100755 --- a/xap/gammastep/SlackBuild +++ b/xap/gammastep/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/i3status-rust/SlackBuild b/xap/i3status-rust/SlackBuild index 1a59b9b9..d89a2ab3 100755 --- a/xap/i3status-rust/SlackBuild +++ b/xap/i3status-rust/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/image-roll/SlackBuild b/xap/image-roll/SlackBuild index ae8ff266..5f65ddd0 100755 --- a/xap/image-roll/SlackBuild +++ b/xap/image-roll/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/kitty/SlackBuild b/xap/kitty/SlackBuild index 3a8caa00..e71aa18d 100755 --- a/xap/kitty/SlackBuild +++ b/xap/kitty/SlackBuild @@ -31,7 +31,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/leocad/SlackBuild b/xap/leocad/SlackBuild index 5e468218..174a5969 100755 --- a/xap/leocad/SlackBuild +++ b/xap/leocad/SlackBuild @@ -28,7 +28,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/nextcloud-client/SlackBuild b/xap/nextcloud-client/SlackBuild index e79fcee1..eec46ccd 100755 --- a/xap/nextcloud-client/SlackBuild +++ b/xap/nextcloud-client/SlackBuild @@ -33,7 +33,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION git submodule update --init --recursive diff --git a/xap/polybar/SlackBuild b/xap/polybar/SlackBuild index 76e22e95..1ec982d4 100755 --- a/xap/polybar/SlackBuild +++ b/xap/polybar/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/radeon-profile/SlackBuild b/xap/radeon-profile/SlackBuild index b6fa4e3a..de9a79df 100755 --- a/xap/radeon-profile/SlackBuild +++ b/xap/radeon-profile/SlackBuild @@ -28,7 +28,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/rkvm/SlackBuild b/xap/rkvm/SlackBuild index 06c3b80d..23adf3f0 100755 --- a/xap/rkvm/SlackBuild +++ b/xap/rkvm/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/wezterm/SlackBuild b/xap/wezterm/SlackBuild index 204a85a4..93ba5fb6 100755 --- a/xap/wezterm/SlackBuild +++ b/xap/wezterm/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/x48/SlackBuild b/xap/x48/SlackBuild index 696185f3..05d3486e 100755 --- a/xap/x48/SlackBuild +++ b/xap/x48/SlackBuild @@ -35,7 +35,7 @@ cp -R $REPOSITORY $TMP/$PRGNAM # Preparation cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/xap/x49gp/SlackBuild b/xap/x49gp/SlackBuild index 99f31235..59d54a50 100755 --- a/xap/x49gp/SlackBuild +++ b/xap/x49gp/SlackBuild @@ -35,7 +35,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/y/cboard/SlackBuild b/y/cboard/SlackBuild index b8de0d70..08dde86f 100755 --- a/y/cboard/SlackBuild +++ b/y/cboard/SlackBuild @@ -32,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION diff --git a/y/steamtinkerlaunch/SlackBuild b/y/steamtinkerlaunch/SlackBuild index 60fb95f9..abbb0435 100755 --- a/y/steamtinkerlaunch/SlackBuild +++ b/y/steamtinkerlaunch/SlackBuild @@ -30,7 +30,7 @@ git pull --all cp -R $REPOSITORY $TMP/$PRGNAM cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xlatest" ] && VERSION=$(git for-each-ref --sort=taggerdate --format '%(tag)' | tail -n1) +[ "x$VERSION" == "xlatest" ] && VERSION=$(git describe --tags --abbrev=0) [ "x$VERSION" == "x" ] && VERSION=trunk [ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION