Debian Codegraph @

debian/patch_libtool

raw
1 #!/bin/sh -e
2
3 if [ -z "$DEB_HOST_ARCH" ]; then
4 DEB_HOST_ARCH="$(dpkg-architecture -qDEB_HOST_ARCH)"
5 fi
6
7 case "$DEB_HOST_ARCH" in
8 alpha) ;;
9 *) exit ;;
10 esac
11
12 if [ "$1" ]; then
13 DIR="$1"
14 else
15 DIR='.'
16 fi
17
18 echo "Patching the SONAME for $DEB_HOST_ARCH in $DIR/libtool."
19
20 exec \
21 perl -i -pe '/^(library_names_spec|soname_spec)=/ and s/major/major.1/' \
22 $DIR/libtool
23