OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 root="$1" | 3 root="$1" |
4 if [ -z "$root" ] | 4 if [ -z "$root" ] |
5 then | 5 then |
6 echo "usage: $0 /path/to/sysroot [pkg-config-arguments]" >&2 | 6 echo "usage: $0 /path/to/sysroot [pkg-config-arguments]" >&2 |
7 exit 1 | 7 exit 1 |
8 fi | 8 fi |
9 | 9 |
10 rewrite=`dirname $0`/rewrite_dirs.py | 10 rewrite=`dirname $0`/rewrite_dirs.py |
11 | 11 |
12 shift | 12 shift |
13 config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig | 13 config_path=$root/usr/lib/pkgconfig:$root/usr/share/pkgconfig |
14 PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$@" | $re
write $root | 14 set -e |
| 15 result=`PKG_CONFIG_PATH=$config_path pkg-config --define-variable=prefix=/usr "$
@"` |
| 16 echo "$result"| $rewrite $root |
OLD | NEW |