Re: nested ifeq in debian/rules (makefile)

2011-03-03 Thread Richard Ulrich
Hi Joachim, dpk-vendor checks the contents of /etc/dpkg/origins/default. Both are missing on lenny. Trying to call (the missing) dpk-vendor on lenny results in an error. That's the reason I'm checking for file existence. Rgds Richard signature.asc Description: This is a digitally signed

Re: nested ifeq in debian/rules (makefile)

2011-03-02 Thread Jakub Wilk
* Richard Ulrich ri...@paraeasy.ch, 2011-03-02, 22:13: ifeq ( $(shell [ -e /etc/dpkg/origins/default ]; printf $$?), 0) ifeq ( $(shell dpkg-vendor --derives-from Ubuntu echo yes), yes) Remove spaces between ( and $. -- Jakub Wilk -- To UNSUBSCRIBE, email to

Re: nested ifeq in debian/rules (makefile)

2011-03-02 Thread Richard Ulrich
Hi Jakub, I played around with the spaces a lot. The result was always the same. ifeq ($(shell[-e /etc/dpkg/origins/default];printf $$?),0) ifeq ($(shell dpkg-vendor --derives-from Ubuntu echo yes),yes) Rgds Richard -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org

Re: nested ifeq in debian/rules (makefile)

2011-03-02 Thread Jakub Wilk
* Richard Ulrich ri...@paraeasy.ch, 2011-03-03, 00:29: ifeq ($(shell[-e /etc/dpkg/origins/default];printf $$?),0) How could this possibly work? $ [-e /etc/dpkg/origins/default];printf $? bash: [-e: command not found 127 I didn't tell you to remove space from every place you can think of,

Re: nested ifeq in debian/rules (makefile)

2011-03-02 Thread Joachim Wiedorn
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