File: patch_libtool

package info (click to toggle)
libxcrypt 1%3A4.4.18-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,544 kB
  • sloc: ansic: 18,897; perl: 1,356; makefile: 600; python: 595; sh: 293
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