head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC4:1.1.1.2 netbsd-11-0-RC3:1.1.1.2 netbsd-11-0-RC2:1.1.1.2 netbsd-11-0-RC1:1.1.1.2 netbsd-11:1.1.1.2.0.8 netbsd-11-base:1.1.1.2 netbsd-10-1-RELEASE:1.1.1.2 libxcb-1-17-0:1.1.1.2 netbsd-8-3-RELEASE:1.1.1.2 netbsd-9-4-RELEASE:1.1.1.2 netbsd-10-0-RELEASE:1.1.1.2 netbsd-10-0-RC6:1.1.1.2 netbsd-10-0-RC5:1.1.1.2 netbsd-10-0-RC4:1.1.1.2 netbsd-10-0-RC3:1.1.1.2 netbsd-10-0-RC2:1.1.1.2 netbsd-10-0-RC1:1.1.1.2 netbsd-10:1.1.1.2.0.6 netbsd-10-base:1.1.1.2 netbsd-9-3-RELEASE:1.1.1.2 libxcb-1-15:1.1.1.2 netbsd-9-2-RELEASE:1.1.1.2 libxcb-1-14:1.1.1.2 netbsd-9-1-RELEASE:1.1.1.2 netbsd-8-2-RELEASE:1.1.1.2 netbsd-9-0-RELEASE:1.1.1.2 netbsd-9-0-RC2:1.1.1.2 netbsd-9-0-RC1:1.1.1.2 netbsd-9:1.1.1.2.0.4 netbsd-9-base:1.1.1.2 netbsd-8-1-RELEASE:1.1.1.2 netbsd-8-1-RC1:1.1.1.2 libxcb-1-13-1:1.1.1.2 netbsd-8-0-RELEASE:1.1.1.2 netbsd-8-0-RC2:1.1.1.2 netbsd-8-0-RC1:1.1.1.2 libxcb-1-13:1.1.1.2 netbsd-8:1.1.1.2.0.2 netbsd-8-base:1.1.1.2 libxcb-1-12:1.1.1.2 libxcb-1-11-1:1.1.1.1 libxcb-1-11:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.1 date 2015.07.23.00.54.04; author mrg; state Exp; branches 1.1.1.1; next ; commitid IRRzFbILnk4Hsluy; 1.1.1.1 date 2015.07.23.00.54.04; author mrg; state Exp; branches; next 1.1.1.2; commitid IRRzFbILnk4Hsluy; 1.1.1.2 date 2017.03.05.08.57.28; author mrg; state Exp; branches; next ; commitid 19ncYUpDbZUI8lIz; desc @@ 1.1 log @Initial revision @ text @#!/bin/sh case "$AM_SRCDIR" in "") AM_SRCDIR="." ;; *) ;; esac fix=n status=0 case "$1" in "-fix") fix=y ;; esac for inc in src/*.h; do package=xcb-`basename $inc .h` pcin="$AM_SRCDIR"/$package.pc.in if [ -f $pcin ]; then included=`grep '# *include' $inc | sed -e 's/[^<"]*[<"]//' -e 's/[>"]//' | grep -v 'xcb.h\|xproto.h'` requires=`grep '^Requires:' $pcin` missing="" for i in $included; do ibase=`basename $i .h` r="xcb-$ibase" rpcin="$AM_SRCDIR"/$r.pc.in if [ -f $rpcin ]; then m="$r" for has in $requires; do if [ $has = $r ]; then m="" fi done case "$m" in "") ;; *) case "$missing" in "") missing=$m ;; *) missing="$missing $m" ;; esac ;; esac fi done case "$missing" in "") ;; *) if [ "$fix" = "y" ]; then echo $package adding dependency on $missing sed -i '/^Requires:/s/$/ '"$missing"'/' $pcin else echo $package missing $missing status=1 fi ;; esac fi done exit $status @ 1.1.1.1 log @initial import of libxcb-1.11 @ text @@ 1.1.1.2 log @initial import of libxcb-1.12 @ text @d26 1 a26 1 requires=`grep '^Requires.private:' $pcin` d61 1 a61 1 sed -i '/^Requires.private:/s/$/ '"$missing"'/' $pcin @