git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fixups for micro-release (now: tag-fixes-release) script
[exim.git]
/
src
/
scripts
/
reversion
diff --git
a/src/scripts/reversion
b/src/scripts/reversion
index 5e0ed855484817f2b07ead7bd7503586374ad29c..00fc028b57df1432170740e4c59a3c17744bf887 100755
(executable)
--- a/
src/scripts/reversion
+++ b/
src/scripts/reversion
@@
-37,7
+37,7
@@
fi
# If this tree is a git working directory, use that to get version information.
# If this tree is a git working directory, use that to get version information.
-if [ -d ../../.git ] || [ "$1" = "release" ]
+if [ -d ../../.git ] || [
-f ../../.git ] || [
"$1" = "release" ]
then
# Modify the output of git describe into separate parts for
# the name "exim" and the release and variant versions.
then
# Modify the output of git describe into separate parts for
# the name "exim" and the release and variant versions.
@@
-96,7
+96,7
@@
if [ ".${SOURCE_DATE_EPOCH:-}" != "." ]; then
# builds without it causing any problems: nothing really cares about timezone.
# GNU date: "date -d @TS"
# BSD date: "date -r TS"
# builds without it causing any problems: nothing really cares about timezone.
# GNU date: "date -d @TS"
# BSD date: "date -r TS"
- exim_build_date_override="$(date -u -d "@${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null | date -u -r "${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null)"
+ exim_build_date_override="$(date -u -d "@${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null |
|
date -u -r "${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null)"
fi
( echo '# automatically generated file - see ../scripts/reversion'
fi
( echo '# automatically generated file - see ../scripts/reversion'