Changeset 1146
- Timestamp:
- May 12, 2017, 7:26:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rpm/trunk/scripts/pkgconfigdeps.sh
r375 r1146 3 3 # TODO fix this script to accept $2 instead of stdin 4 4 # re-read file to stdin... 5 exec 0<$25 [ -n "$2" ] && exec 0<$2 6 6 7 pkgconfig=/usr/bin/pkg-config 8 test -x $pkgconfig || { 7 case `uname -a` in 8 OS/2*) 9 pkgconfig=/@unixroot/usr/bin/pkg-config.exe 10 pathsep="\;" 11 ;; 12 *) 13 pkgconfig=/usr/bin/pkg-config 14 pathsep=":" 15 ;; 16 esac 17 18 test -x "$pkgconfig" || { 9 19 cat > /dev/null 10 20 exit 0 … … 28 38 # Query the dependencies of the package. 29 39 DIR="`dirname ${filename}`" 30 export PKG_CONFIG_PATH="$DIR :$DIR/../../share/pkgconfig"40 export PKG_CONFIG_PATH="$DIR$pathsep$DIR/../../share/pkgconfig" 31 41 $pkgconfig --print-provides "$filename" 2> /dev/null | while read n r v ; do 32 42 [ -n "$n" ] || continue … … 48 58 [ $i -eq 1 ] && echo "$pkgconfig" 49 59 DIR="`dirname ${filename}`" 50 export PKG_CONFIG_PATH="$DIR :$DIR/../../share/pkgconfig"60 export PKG_CONFIG_PATH="$DIR$pathsep$DIR/../../share/pkgconfig" 51 61 $pkgconfig --print-requires --print-requires-private "$filename" 2> /dev/null | while read n r v ; do 52 62 [ -n "$n" ] || continue
Note:
See TracChangeset
for help on using the changeset viewer.