dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 620fd9dc5666f11b322a7088a220f408636a77e3
parent 662e06e68e9bc2c41c3cb90d36c4d9998ff1f958
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Mon,  8 Aug 2022 21:19:16 -0500

use `git describe` to generate version

Diffstat:
Mconfig.mk | 2+-
Dgenerate-version.sh | 13-------------
2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/config.mk b/config.mk @@ -1,5 +1,5 @@ _VERSION = 0.3.1 -VERSION = `./generate-version.sh $(_VERSION)` +VERSION = `git describe --long --tags --dirty 2>/dev/null || echo $(_VERSION)` # paths PREFIX = /usr/local diff --git a/generate-version.sh b/generate-version.sh @@ -1,13 +0,0 @@ -#!/bin/sh - -if git tag --contains HEAD | grep -q $1; then - echo $1 -else - branch="$(git rev-parse --abbrev-ref HEAD)" - commit="$(git rev-parse --short HEAD)" - if [ "${branch}" != "main" ]; then - echo $1-$branch-$commit - else - echo $1-$commit - fi -fi