~ruther/dwl

ref: c70db2d06a7c868ba2d36de0984f5b39afd1a1c6 dwl/generate-version.sh -rwxr-xr-x 249 bytes
c70db2d0 — Leonardo Hernández Hernández Revert "only call wlr_seat_keyboard_notify_enter() if a keyboard is found" 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
Do not follow this link