diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-04-03 19:52:33 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-04-03 19:52:33 -0700 |
commit | 06ce13551cb16657c74e243172e86caf3837cfba (patch) | |
tree | 13d389cc9a8be079d62b35d3d72370c4f1e019ba /lib/DhMakeELPA/Command | |
parent | c943626f1004375f3cd7f183cbd253c7c342f601 (diff) |
tidy extract_version
Diffstat (limited to 'lib/DhMakeELPA/Command')
-rw-r--r-- | lib/DhMakeELPA/Command/Packaging.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/DhMakeELPA/Command/Packaging.pm b/lib/DhMakeELPA/Command/Packaging.pm index 44c77a0..a5d6788 100644 --- a/lib/DhMakeELPA/Command/Packaging.pm +++ b/lib/DhMakeELPA/Command/Packaging.pm @@ -192,8 +192,7 @@ sub extract_version { if ( -f $self->main_file("$bin.el") ) { my $fh = $self->_file_r("$bin.el"); while (my $line = $fh->getline) { - if ( $line =~ /^;; Version: ([0-9.]*)$/ ) { - print "win $1"; + if ( $line =~ /^;; (Package-)*Version: ([0-9.]*)$/ ) { $version = $1; } } @@ -203,7 +202,6 @@ sub extract_version { my $fh = $self->_file_r("$bin-pkg.el"); while (my $line = $fh->getline) { if ( $line =~ /.*\(define-package\s+"[^"]+"\s+"([0-9.]*)"/ ) { - print "win $1"; $version = $1; } } |