diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-08-13 16:54:30 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-08-13 16:54:30 -0700 |
commit | e600c46ecd95a6e5dfedd633c9e5af78726702e3 (patch) | |
tree | e1a7f8d54a833f30fc4a5cdd3e4dc060ea0729c3 /bin/sblog | |
parent | 38794be3cef2a553b7b5ebd330f1175f2189ff12 (diff) | |
download | dotfiles-e600c46ecd95a6e5dfedd633c9e5af78726702e3.tar.gz |
sblog now finds debuild logs too
Diffstat (limited to 'bin/sblog')
-rwxr-xr-x | bin/sblog | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -1,8 +1,6 @@ #!/usr/bin/perl # try to view latest debuild/sbuild log -# TODO don't check for symlinks, rather actually put the arch in and -# find the build log so that this works for both debuild and sbuild use strict; use warnings; @@ -11,18 +9,6 @@ use File::Glob; chomp( my $version = `dpkg-parsechangelog -SVersion`); chomp( my $package = `dpkg-parsechangelog -SSource` ); +chomp( my $arch = `dpkg --print-architecture` ); -my @logs = <../${package}_${version}_*.build>; - -my @symlinks; -foreach my $log ( @logs ) { - push @symlinks, $log if ( -l $log ); -} - -if ( scalar @symlinks > 1 ) { - print "multiple logs you might want to look at: \n"; - print join "\n", @symlinks; - print "\n"; -} else { - system "less $symlinks[0]"; -} +system "less ../${package}_${version}_$arch.build"; |