From 8e0e785ce83c9bf3c7ead42be9b9a4eaf97d714a Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 27 Jun 2011 12:57:34 +0000 Subject: [PATCH] * usr/bin/byobu-status, usr/lib/byobu/.constants, usr/lib/byobu/Makefile.am, usr/lib/byobu/.shutil: - add copyright headers, install constants --- debian/changelog | 3 +++ usr/bin/byobu-status | 2 ++ usr/lib/byobu/.constants | 18 ++++++++++++++++++ usr/lib/byobu/.shutil | 19 +++++++++++++++++++ usr/lib/byobu/Makefile.am | 2 +- 5 files changed, 43 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 33f436eb..a4ed75b2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -25,6 +25,9 @@ byobu (4.14) unreleased; urgency=low - add frequencies * experimental/byobu-status-all: - intermediate commit, helper tool with some of the new logic + * usr/bin/byobu-status, usr/lib/byobu/.constants, + usr/lib/byobu/Makefile.am, usr/lib/byobu/.shutil: + - add copyright headers, install constants -- Dustin Kirkland Thu, 16 Jun 2011 16:16:29 -0500 diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index caa35e9d..e70039f3 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -89,6 +89,8 @@ case "$P" in [ "$x" = "1" ] || exit 0 shift find_script "$P" && . "${_RET}" + local s=${_RET##*/} + eval "__$s" ;; esac diff --git a/usr/lib/byobu/.constants b/usr/lib/byobu/.constants index 18e7d29f..bbdf472d 100755 --- a/usr/lib/byobu/.constants +++ b/usr/lib/byobu/.constants @@ -1,4 +1,22 @@ #!/bin/sh +# +# .constants: some constant values needed by all library status scripts +# +# Copyright (C) 2011 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 . PKG="byobu" CONFIG_DIR="$HOME/.$PKG" diff --git a/usr/lib/byobu/.shutil b/usr/lib/byobu/.shutil index ac3bc5c1..4fb4526b 100755 --- a/usr/lib/byobu/.shutil +++ b/usr/lib/byobu/.shutil @@ -1,4 +1,23 @@ #!/bin/sh +# +# .shutil: some shared utilities used by all status scripts +# +# Copyright (C) 2011 Dustin Kirkland +# +# Authors: Dustin Kirkland +# Scott Moser +# +# 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 . color 2>/dev/null || color() { true; } diff --git a/usr/lib/byobu/Makefile.am b/usr/lib/byobu/Makefile.am index 555b68ef..1acb583d 100644 --- a/usr/lib/byobu/Makefile.am +++ b/usr/lib/byobu/Makefile.am @@ -1,3 +1,3 @@ libdirdir = $(prefix)/lib/@PACKAGE@ -libdir_SCRIPTS = apport arch battery cpu_count cpu_freq cpu_temp custom date disk disk_io ec2_cost fan_speed hostname ip_address load_average logo mail mem_available mem_used menu network .notify_osd notify_osd processes raid rcs_cost reboot_required release services swap time time_binary time_utc trash updates_available uptime users whoami wifi_quality .shutil +libdir_SCRIPTS = apport arch battery cpu_count cpu_freq cpu_temp custom date disk disk_io ec2_cost fan_speed hostname ip_address load_average logo mail mem_available mem_used menu network .notify_osd notify_osd processes raid rcs_cost reboot_required release services swap time time_binary time_utc trash updates_available uptime users whoami wifi_quality .constants .shutil