File: patch_libtool

package info (click to toggle)
libxcrypt 1%3A4.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,844 kB
  • sloc: ansic: 20,977; perl: 1,406; makefile: 720; python: 612; sh: 242
file content (23 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

if [ -z "$DEB_HOST_ARCH" ]; then
  DEB_HOST_ARCH="$(dpkg-architecture -qDEB_HOST_ARCH)"
fi

case "$DEB_HOST_ARCH" in
  alpha) ;;
  *) exit ;;
esac

if [ "$1" ]; then
  DIR="$1"
else
  DIR='.'
fi

echo "Patching the SONAME for $DEB_HOST_ARCH in $DIR/libtool."

exec \
perl -i -pe '/^(library_names_spec|soname_spec)=/ and s/major/major.1/' \
  $DIR/libtool