"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bld/pkg-wrapper" between
dnsmasq-2.82.tar.xz and dnsmasq-2.83.tar.xz

About: Dnsmasq is a lightweight caching DNS forwarder and DHCP server.

pkg-wrapper  (dnsmasq-2.82.tar.xz):pkg-wrapper  (dnsmasq-2.83.tar.xz)
#!/bin/sh #!/bin/sh
search=$1
shift
pkg=$1
shift
op=$1
shift
in=`cat` in=`cat`
if grep "^\#[[:space:]]*define[[:space:]]*$search" config.h >/dev/null 2>&1 || \ search()
echo $in | grep $search >/dev/null 2>&1; then {
grep "^\#[[:space:]]*define[[:space:]]*$1" config.h >/dev/null 2>&1 || \
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 # Nasty, nasty, in --copy, arg 2 (if non-empty) is another config to search for, used with NO_GMP
if [ $op = "--copy" ]; then if [ $op = "--copy" ]; then
if [ -z "$pkg" ]; then if [ -z "$pkg" ]; then
pkg="$*" pkg="$lib"
elif grep "^\#[[:space:]]*define[[:space:]]*$pkg" config.h >/dev/null 2>& elif search "$pkg"; then
1 || \
echo $in | grep $pkg >/dev/null 2>&1; then
pkg="" pkg=""
else else
pkg="$*" pkg="$lib"
fi fi
elif grep "^\#[[:space:]]*define[[:space:]]*${search}_STATIC" config.h >/dev elif search "${search}_STATIC"; then
/null 2>&1 || \ pkg=`$pkg --static $op $lib`
echo $in | grep ${search}_STATIC >/dev/null 2>&1; then
pkg=`$pkg --static $op $*`
else else
pkg=`$pkg $op $*` pkg=`$pkg $op $lib`
fi fi
if grep "^\#[[:space:]]*define[[:space:]]*${search}_STATIC" config.h >/dev/n if search "${search}_STATIC"; then
ull 2>&1 || \
echo $in | grep ${search}_STATIC >/dev/null 2>&1; then
if [ $op = "--libs" ] || [ $op = "--copy" ]; then if [ $op = "--libs" ] || [ $op = "--copy" ]; then
echo "-Wl,-Bstatic $pkg -Wl,-Bdynamic" echo "-Wl,-Bstatic $pkg -Wl,-Bdynamic"
else else
echo "$pkg" echo "$pkg"
fi fi
else else
echo "$pkg" echo "$pkg"
fi fi
fi fi
done
 End of changes. 8 change blocks. 
22 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)