~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to packages/OS400/initscript.sh

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
# $Id: initscript.sh,v 1.5 2008-05-20 10:21:50 patrickm Exp $
 
3
# $Id: initscript.sh,v 1.7 2009-02-16 15:33:17 patrickm Exp $
4
4
 
5
5
case "${SCRIPTDIR}" in
6
6
/*)     ;;
22
22
 
23
23
#  Extract the SONAME from the library makefile.
24
24
 
25
 
SONAME=`sed -e '/^VERSION=/!d' -e 's/^.* \([0-9]*\):.*$/\1/'           \
 
25
SONAME=`sed -e '/^VERSIONINFO=/!d' -e 's/^.* \([0-9]*\):.*$/\1/' -e 'q' \
26
26
                                                < "${TOPDIR}/lib/Makefile.am"`
27
27
export SONAME
28
28
 
156
156
 
157
157
{
158
158
        basename "${1}"                                                 |
159
 
        tr '[a-z-]' '[A-Z_]'                                              |
 
159
        tr '[a-z-]' '[A-Z_]'                                            |
160
160
        sed -e 's/\..*//'                                               \
161
161
            -e 's/^\(..........\).*/\1/'
162
162
}