~ubuntu-branches/debian/wheezy/byobu/wheezy

« back to all changes in this revision

Viewing changes to usr/share/byobu/tests/byobu-time-notifications

  • Committer: Package Import Robot
  • Author(s): Alexander Chernyakhovsky
  • Date: 2011-10-02 19:04:37 UTC
  • mfrom: (0.5.2 upstream) (0.1.145 oneiric)
  • Revision ID: package-import@ubuntu.com-20111002190437-apn9z04063rh052s
Tags: 4.37-1
* Syncing from Ubuntu.
* Switch to dh short syntax
* Change maintainer (adopting this package)
* Added a substvar ${perl:Depends} dependency into debian/control
* Bump standards version to 3.9.2, no changes 

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#
5
5
#    Copyright (C) 2009 Canonical Ltd.
6
6
#
7
 
#    Authors: Dustin Kirkland <kirkland@canonical.com>
 
7
#    Authors: Dustin Kirkland <kirkland@ubuntu.com>
8
8
#
9
9
#    This program is free software: you can redistribute it and/or modify
10
10
#    it under the terms of the GNU General Public License as published by
21
21
 
22
22
PKG=byobu
23
23
RUNS=100
 
24
[ -z "$BYOBU_PREFIX" ] && BYOBU_PREFIX="/usr"
 
25
export BYOBU_PREFIX
24
26
 
25
27
loop() {
26
28
        for j in $(seq 1 $RUNS); do
27
 
                /usr/lib/$PKG/$1 >/dev/null
 
29
                usr/lib/$PKG/$1 >/dev/null 2>&1
28
30
        done
29
31
}
30
32
 
35
37
        list=$(ls /usr/lib/$PKG/)
36
38
fi
37
39
for i in $list; do
38
 
        freq=`grep "byobu-status $i" /usr/share/$PKG/profiles/common | awk '{print $3}'`
 
40
        case "$i" in
 
41
                notify_osd)
 
42
                        continue
 
43
                ;;
 
44
        esac
 
45
        freq=`grep "byobu-status $i$" /usr/share/$PKG/profiles/common | awk '{print $3}'`
39
46
        echo -n "$i $freq "
40
47
        time loop $i
41
48
done