~matttbe/ubuntu/quantal/apache2/lp1013171

« back to all changes in this revision

Viewing changes to debian/scripts/lib

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-10-13 19:46:10 UTC
  • Revision ID: james.westby@ubuntu.com-20041013194610-ccvqcz8vflh5zqrm
Tags: 2.0.50-12ubuntu4
Security Release. Patch from upstream for the following:
CAN-2004-0885SSLCypherSuite can be bypassed during renegotiation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
lib_START=foo
 
3
fetchmsg() {
 
4
        local msg
 
5
        msg=$1;shift
 
6
        eval echo $(sed -ne "s/^$(BASENAME):$msg://p" debian/scripts/messages)
 
7
}
 
8
START() {
 
9
        echo -n "$(fetchmsg START "$@") "
 
10
}
 
11
OK() {
 
12
        fetchmsg OK "$@"
 
13
}
 
14
FAILED() {
 
15
        fetchmsg FAILED "$@"
 
16
}
 
17
ALREADY_DONE() {
 
18
        fetchmsg ALREADY_DONE "$@"
 
19
}
 
20
 
 
21
BASENAME() {
 
22
        local base
 
23
        base=${0##*/}
 
24
        if [ x$base = x ];then
 
25
                echo "Danger, Will Robinson, Danger!" 1>&2
 
26
                echo "Bash is very confused." 1>&2
 
27
                exit 1
 
28
        fi
 
29
        if [ x$base = xlib ];then
 
30
                echo "You can't call this directly." 1>&2
 
31
                echo "This is a library that should be sourced." 1>&2
 
32
                exit 1
 
33
        fi
 
34
        echo $base
 
35
}
 
36
file2cat() {
 
37
        case "$f" in
 
38
                *.gz|*.Z)       cmd=zcat;;
 
39
                *.bz)           cmd=bzcat;;
 
40
                *.bz2)          cmd=bz2cat;;
 
41
                *)              cmd=cat;;
 
42
        esac
 
43
        $cmd $f
 
44
}