]> thyrsus.com Git - ssh-installkeys.git/commitdiff
Store the version number within ssh-installkeys itself.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 09:48:28 +0000 (05:48 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 13 Oct 2010 09:48:28 +0000 (05:48 -0400)
Makefile
ssh-installkeys

index 6cc4b4348abb2e41537230f63706eb481f04ecb0..682c79e98bbb95c4b4db3645956ebf620adc5d73 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,13 @@
 # Makefile for the ssh-installkeys project
 
 # Don't forget to change the spec file when you bump the version number.
-VERS=$(shell sed <ssh-installkeys.spec -n -e '/Version: \(.*\)/s//\1/p')
+VERS=$(shell sed <ssh-installkeys -n -e '/version=\(.*\)/s//\1/p')
 
 MANDIR=/usr/share/man/man1
 BINDIR=/usr/bin
 
 DOCS    = README COPYING ssh-installkeys.xml ssh-installkeys.1
-SOURCES = ssh-installkeys Makefile $(DOCS) ssh-installkeys.spec
+SOURCES = ssh-installkeys Makefile $(DOCS)
 
 all: ssh-installkeys-$(VERS).tar.gz
 
index 7523b589247aa95bcaf03639ac4a76b2c8fa44d8..03ef114025fab65149cf66d4a2b6f8d93fa4865f 100755 (executable)
@@ -564,6 +564,8 @@ def split_command_line(command_line):
 #
 ###############################################################################
 
+version=1.4
+
 class ssh_session:
     "Session with extra state including the password to be used."
     def __init__(self, user, port, host, password=None, verbose=0):