xref: /OK3568_Linux_fs/external/libmali/scripts/fixup_nowrap.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh -e
2
3[ $# -lt 1 ] && {
4	echo "usage: $0 <dest dir>"
5	exit 1
6}
7
8BUILD_DIR="${MESON_BUILD_ROOT:-build}"
9DEST_DIR="${MESON_INSTALL_DESTDIR_PREFIX:-/usr}/$1"
10
11# Cleanup wrappers
12cd "$DEST_DIR"
13for f in $(cd $BUILD_DIR && find . -maxdepth 1 -type f -name "lib*.so.[0-9]"); do
14	cp -a libmali.so $f
15done
16
17exit 0
18