File: patch_libtool

package info (click to toggle)
libxcrypt 1%3A4.4.38-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,612 kB
  • sloc: ansic: 19,086; perl: 1,404; makefile: 675; python: 594; sh: 243
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