| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. -e |
| 2 | |
| 3 | if [scip-shell system . . `[`. -z "$DEB_HOST_ARCH" ]; then |
| 4 | DEB_HOST_ARCH="$(dpkg-architecturescip-shell system . . dpkg-architecture. -qDEB_HOST_ARCH)" |
| 5 | fi |
| 6 | |
| 7 | case "$DEB_HOST_ARCH" in |
| 8 | alpha) ;; |
| 9 | *) exit ;; |
| 10 | esac |
| 11 | |
| 12 | if [scip-shell system . . `[`. "$1" ]; then |
| 13 | DIR="$1" |
| 14 | else |
| 15 | DIR='.' |
| 16 | fi |
| 17 | |
| 18 | echoscip-shell system . . 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/scip-shell filesystem . . `/^(library_names_spec|soname_spec)=/ and s/major/major.1/`.' \ |
| 22 | $DIR/libtool |
| 23 |