0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/crawl/util-gen_ver.pl.diff
2023-05-07 06:14:28 +09:00

12 lines
549 B
Diff

--- a/crawl-ref/source/util/gen_ver.pl
+++ b/crawl-ref/source/util/gen_ver.pl
@@ -20,7 +20,7 @@
#
# Source tarbells distributed as part of a release include this file already
# generated with the release version.
-$_ = `git describe $mergebase 2> /dev/null`
+$_ = "@VERSION@"
|| (open(IN, "<", "$scriptpath/release_ver") ? <IN>
: die "Can't get version information: `git describe` failed (no git, no repository, or shallow clone), and $scriptpath/release_ver doesn't exist.\n")
or die "couldn't get the version information\n";