commit 913918e8a414f8a612e2807faf5ef947d11bfbe4
parent bb6df6916d6680e26b8fa2380c6764060ca663f6
Author: mrgrouse <bdmfegys@duck.com>
Date: Tue, 8 Oct 2024 15:46:24 -0400
Makefile: add comment about possible POSIX solution
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -43,6 +43,7 @@ dist: clean
install: all
# TODO: fix next line so XDG_DATA_HOME gets the user's XDG_DATA_HOME, possibly with `configure` script (?)
# NOTE: the following only works on GNU based systems: use `stat -c '$U' file.txt` to programatically get owner of `file.txt`
+ # Alternatively, use `LC_ALL=C ls -ld file | LC_ALL=C awk '{print $3; exit}'` to do it in a POSIX way
cp -r autostart ${XDG_DATA_HOME}/birdwm
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f birdwm ${DESTDIR}${PREFIX}/bin