чување 5abd814eaddccab93c9aa81f831cd349b3c0b175
родитељ 0f8a49728a4f7e752a1ad41e049cb5a52374fc67
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Tue, 21 Feb 2023 21:18:10 +0100
README, slweb.1.in: Update copyright years; version.do: Update from sled, poe
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 3, додавања: 8(+), брисања: 4(-)
diff --git a/README b/README
@@ -44,7 +44,7 @@ See the examples/ directory in this repository.
-------
slweb - Simple static website generator.
- Copyright (C) 2020, 2021 Страхиња Радић
+ Copyright (C) 2020, 2021, 2022, 2023 Страхиња Радић
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/slweb.1.in b/slweb.1.in
@@ -36,7 +36,7 @@ slweb \- Simple static website generator
.YS
.
.SH COPYRIGHT
-slweb Copyright \(co 2020, 2021, 2022 Strahinya Radich.
+slweb Copyright \(co 2020, 2021, 2022, 2023 Strahinya Radich.
.br
This program is licensed under GNU GPL v3 or later. See the file
.I LICENSE
diff --git a/version.do b/version.do
@@ -1,5 +1,9 @@
FALLBACKVER=${FALLBACKVER:-unknown}
-{ command -v git >/dev/null 2>&1 && git describe >/dev/null 2>&1; } && \
- git describe 2>/dev/null | sed 's/^v//' >$3 || echo $FALLBACKVER >$3
+user=$(stat -c %U .)
+if command -v git >/dev/null 2>&1; then
+ su "${user}" -c 'git describe' 2>/dev/null | sed 's/^v//' >$3
+else
+ echo $FALLBACKVER >$3
+fi
redo-always
redo-stamp <$3