~ubuntu-branches/ubuntu/feisty/d-shlibs/feisty

« back to all changes in this revision

Viewing changes to d-shlibmove

  • Committer: Bazaar Package Importer
  • Author(s): Junichi Uekawa
  • Date: 2006-08-03 08:37:13 UTC
  • mfrom: (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060803083713-thbqe0dkkc2oktxi
Tags: 0.31
support for newer gtk/glib situation (Closes: #381129).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
#   d-shlibmove -- move shared library files around for Debian packaging
3
 
#   Copyright (C) 2002 Junichi Uekawa
 
3
#   Copyright (C) 2002, 2005 Junichi Uekawa
4
4
#
5
5
#   This program is free software; you can redistribute it and/or modify
6
6
#   it under the terms of the GNU General Public License as published by
55
55
        exit 1;
56
56
    fi
57
57
    
58
 
    SONAME=$(objdump -p ${LIBNAME} |sed -n 's/^.*SONAME *//p' )
 
58
    SONAME=$(set -o pipefail; objdump -p ${LIBNAME} |sed -n 's/^.*SONAME *//p' )
59
59
    getname "$SONAME"
60
60
    SONAMEPKGNAME="$RETURN"
61
61
    PK=$(basename "$1" | sed 's/\.so$//')
139
139
        --c102)
140
140
            C102="c102"
141
141
            shift;;
 
142
        --override)
 
143
            OVERRIDE[${#OVERRIDE[@]}]="$2"
 
144
            shift; shift;;
142
145
        --|*)
143
146
            break;
144
147
            ;;
163
166
    echo "echo \"${SONAMELIBNAME} ${SONAMEVERSION} ${PKGSHL} (>= ${SHLIBSLOCALVER})\" >> debian/shlibs.local" >> "$execscript"
164
167
fi
165
168
 
166
 
d-devlibdeps debian/"${PKGDEV}".substvars "${DEVLIB_TO_CHECK}"
 
169
d-devlibdeps "${OVERRIDE[@]/#/--override=}"  debian/"${PKGDEV}".substvars "${DEVLIB_TO_CHECK}"
167
170
 
168
171
#do some definition for the file.
169
172
echo "PKGDEV=${PKGDEV}" >> "${execscript}"