diff options
author | john hood <cgull@glup.org> | 2015-05-18 18:56:40 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2015-05-25 03:46:48 -0400 |
commit | f3073bbe5dafb892ce0c1c93dd246233eaa73309 (patch) | |
tree | c99361781ad7f4a8f220e507d51896b9565f53eb /scripts | |
parent | e0138bdb2b48f509260e349ca6c7ef3065cd1f00 (diff) |
Add git commit version info
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 8 | ||||
-rwxr-xr-x | scripts/mosh.pl (renamed from scripts/mosh) | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 2f5825a..1baa2a9 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -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 diff --git a/scripts/mosh b/scripts/mosh.pl index f13de81..9b801e0 100755 --- a/scripts/mosh +++ b/scripts/mosh.pl @@ -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. |