Diff for /embedaddon/dnsmasq/bld/pkg-wrapper between versions 1.1.1.1 and 1.1.1.4

version 1.1.1.1, 2013/07/29 19:37:40 version 1.1.1.4, 2021/03/17 00:56:46
Line 1 Line 1
 #!/bin/sh  #!/bin/sh
   
search=$1in=`cat`
shift 
   
if grep "^\#[[:space:]]*define[[:space:]]*$search" config.h >/dev/null 2>&1 || \search()
   grep $search >/dev/null 2>&1; then{
  exec $*    grep "^\#[[:space:]]*define[[:space:]]*$1" config.h >/dev/null 2>&1 || \
fi    echo $in | grep $1 >/dev/null 2>&1
 }
   
   while [ "$#" -gt 0 ]; do
       search=$1
       pkg=$2
       op=$3
       lib=$4
       shift 4
   if search "$search"; then
   
   # Nasty, nasty, in --copy, arg 2 (if non-empty) is another config to search for, used with NO_GMP
       if [ $op = "--copy" ]; then
           if [ -z "$pkg" ]; then
               pkg="$lib"
           elif search "$pkg"; then
               pkg=""
           else 
               pkg="$lib"
           fi
       elif search "${search}_STATIC"; then
           pkg=`$pkg  --static $op $lib`
       else
           pkg=`$pkg $op $lib`
       fi
       
       if search "${search}_STATIC"; then
           if [ $op = "--libs" ] || [ $op = "--copy" ]; then
               echo "-Wl,-Bstatic $pkg -Wl,-Bdynamic"
           else
               echo "$pkg" 
           fi
       else
           echo "$pkg"
       fi
   fi
   
   done

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>