27-08-2007, Neil Williams:
>
> Content-Type: text/x-diff;
> Content-Transfer-Encoding: quoted-printable
>
> +++ dpkg.new/scripts/dpkg-buildpackage.sh     2007-08-27 13:14:49.000000000 
> +01=
> 00
> @@ -84,6 +84,18 @@
>  passopts=3D''
>  admindir=3D''
>=20
> +DPKGCROSSENABLE=3D0
> +if [ -f /usr/share/dpkg-cross/buildcross ]; then
   if [ -r /usr/share/dpkg-cross/buildcross ]; then
> + . /usr/share/dpkg-cross/buildcross
> + DPKGCROSSENABLE=3D1
> +fi
> +
> +function enhance_cross {
> +     if [ $DPKGCROSSENABLE -gt 0 ]; then
> +             setup_cross
> +     fi
> +}
> +

enhance_cross {
        [ "$DPKGCROSSENABLE" -gt 0 ] && setup_cross || :
}

note quoting and no "function" bashizm. Also there're less execution
tokens.

>  while [ $# !=3D 0 ]
>  do
>       value=3D"`echo x\"$1\" | sed -e 's/x--.*=3D//;s/^x-.//'`"
____


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to