diff --git a/debian/changelog b/debian/changelog index e314d7f3..4ad5d491 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ byobu (5.81) unreleased; urgency=medium * usr/bin/byobu-enable.in, usr/share/man/man1/byobu-enable.1: - no need to launch byobu in byobu-enable (no idea why I did it that way originally) + * debian/control, usr/bin/ctail, usr/share/man/man1/ctail.1: + - move the ctail command over to byobu, from bikeshed + - ctail will tail and colorize log files -- Dustin Kirkland Mon, 28 Apr 2014 09:36:59 -0700 diff --git a/debian/control b/debian/control index a45a35ac..5adc2485 100644 --- a/debian/control +++ b/debian/control @@ -24,6 +24,7 @@ Recommends: run-one Suggests: apport, + ccze, lsb-release, po-debconf, ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium), @@ -37,11 +38,13 @@ Provides: Replaces: screen-profiles (<< 2.0), screen-profiles-extras (<< 2.0), - byobu-extras (<< 2.17) + byobu-extras (<< 2.17), + bikeshed (<< 1.47) Breaks: screen-profiles (<< 2.0), screen-profiles-extras (<< 2.0), - byobu-extras (<< 2.17) + byobu-extras (<< 2.17), + bikeshed (<< 1.47) Enhances: screen Description: powerful, text based window manager and shell multiplexer Byobu is Ubuntu's text-based window manager based on GNU Screen. diff --git a/usr/bin/ctail b/usr/bin/ctail new file mode 100755 index 00000000..8c26d9b8 --- /dev/null +++ b/usr/bin/ctail @@ -0,0 +1,28 @@ +#!/bin/sh +# +# ctail - colorize and follow a log file +# +# Copyright (C) 2012 Dustin Kirkland +# +# Authors: +# Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +if $BYOBU_TEST ccze -A >/dev/null 2>&1; then + tail -F $@ | ccze -A +else + echo "ERROR: ccze not found, hint..." 1>&2 + echo " sudo apt-get install ccze" 2>&1 + exit 1 +fi diff --git a/usr/share/man/man1/ctail.1 b/usr/share/man/man1/ctail.1 new file mode 100644 index 00000000..df7347e4 --- /dev/null +++ b/usr/share/man/man1/ctail.1 @@ -0,0 +1,20 @@ +.TH ctail 1 "23 Oct 2012" byobu "byobu" +.SH NAME +ctail \- watch and colorize a logfile + +.SH SYNOPSIS +\fBctail\fP [FILE] + +.SH DESCRIPTION +\fBctail\fP is a very simple alias that watches a file and colorizes it. It's very useful for monitoring logfiles. + +.SH EXAMPLE + ctail /var/log/syslog + +.SH SEE ALSO +\fBccze\fP(1), \fBtail\fP(1) + +.SH AUTHOR +This manpage and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP.