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 messa

Re: nested ifeq in debian/rules (makefile)

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

Re: nested ifeq in debian/rules (makefile)

2011-03-02 Thread Jakub Wilk
* Richard Ulrich , 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, but only two particu

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 w

Re: nested ifeq in debian/rules (makefile)

2011-03-02 Thread Jakub Wilk
* Richard Ulrich , 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 debian-mentors-requ...@lists.debian.org w

nested ifeq in debian/rules (makefile)

2011-03-02 Thread Richard Ulrich
Hi, I'm new to debian mentors. A while ago I read a blog article about how to use only one branch for debian and ubuntu packages with different dependencies. http://raphaelhertzog.com/2010/09/27/different-dependencies-between-debian-and-ubuntu-but-common-source-package/ I tried to implement it,