Rename VERSION to VERSION.stamp

-I$(top_srcdir) is not usable on macOS due to a conflicting C++ header
 `version`.
This commit is contained in:
Alex Chernyakhovsky
2023-03-05 20:52:52 -05:00
committed by Alex Chernyakhovsky
parent aa742478cb
commit 62869ae55f
5 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ if BUILD_CLIENT
endif
CLEANFILES = $(bin_SCRIPTS)
mosh: mosh.pl ../VERSION Makefile
mosh: mosh.pl ../VERSION.stamp Makefile
perl -Mdiagnostics -c $(srcdir)/mosh.pl
@sed -e "s/\@VERSION\@/`cat ../VERSION`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh
@sed -e "s/\@VERSION\@/`cat ../VERSION.stamp`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh
@chmod a+x mosh