Add git commit version info

This commit is contained in:
john hood
2015-05-18 18:56:40 -04:00
committed by John Hood
parent e0138bdb2b
commit f3073bbe5d
5 changed files with 32 additions and 7 deletions
+6 -2
View File
@@ -1,4 +1,8 @@
EXTRA_DIST = wrap-compiler-for-flag-check
EXTRA_DIST = wrap-compiler-for-flag-check mosh.pl
if BUILD_CLIENT
dist_bin_SCRIPTS = mosh
bin_SCRIPTS = mosh
endif
CLEANFILES = $(bin_SCRIPTS)
mosh: mosh.pl ../VERSION Makefile
@sed -e "s/\@VERSION\@/`cat ../VERSION`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh
+1 -3
View File
@@ -30,8 +30,6 @@
# this exception statement from all source files in the program, then
# also delete it here.
my $MOSH_VERSION = '1.2.4a';
use warnings;
use strict;
use Getopt::Long;
@@ -89,7 +87,7 @@ qq{Usage: $0 [options] [--] [user@]host [command...]
Please report bugs to mosh-devel\@mit.edu.
Mosh home page: http://mosh.mit.edu\n};
my $version_message = qq{mosh $MOSH_VERSION
my $version_message = qq{@PACKAGE_STRING@ [build @VERSION@]
Copyright 2012 Keith Winstein <mosh-devel\@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.