Richard Ulrich <ri...@paraeasy.ch> wrote on 2011-03-02 22:13:

> ifeq ( $(shell [ -e /etc/dpkg/origins/default ]; printf $$?), 0)
>     ifeq ( $(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
>               @echo "ubuntu maverick"
>     else
>               @echo "debian squeeze"
>     endif
> else
>       @echo "debian lenny"
> endif


I had the same problem some weeks ago. The solution is:

ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
        ...
endif
ifeq ($(shell dpkg-vendor --is Debian && echo yes),yes)
        ...
endif

---
Have a nice day.

Joachim (Germany)


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110303020516.1fba5...@jupiter.home

Reply via email to