File: fix-multiarch.sh

package info (click to toggle)
libqtpas 2.6%2B2.0.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 5,860 kB
  • sloc: cpp: 56,595; pascal: 13,727; sh: 44; makefile: 18
file content (18 lines) | stat: -rwxr-xr-x 560 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# This script is required for Ubuntu-compatibility

for arg; do
  case $arg in
    HOST_MULTIARCH=*) DEB_HOST_MULTIARCH=${arg#HOST_MULTIARCH=};;
    TARGET=*) INSTALLDIR=${arg#TARGET=};;
  esac;
done

echo "Multiarch host: $DEB_HOST_MULTIARCH"
echo "Install target: $INSTALLDIR"

if [ ! -d "$INSTALLDIR/usr/lib/$DEB_HOST_MULTIARCH" ]; then
	echo "Moving files to multiarch path..."
	mkdir -p $INSTALLDIR/usr/lib/$DEB_HOST_MULTIARCH
	mv `find $INSTALLDIR/usr/lib '!' -type d | fgrep -v $DEB_HOST_MULTIARCH` $INSTALLDIR/usr/lib/$DEB_HOST_MULTIARCH/
fi