From: Hai Z. <ha...@gm...> - 2006-01-15 08:38:23
|
Hi! On 1/11/06, Dick Marinus <dic...@ch...> wrote: > Op ma, 09-01-2006 te 20:34 -0800, schreef Hai Zaar: > > + [[ "$(DESTDIR)" =3D=3D "" ]] || $(sbindir)/ldbashconfig > This isn't right is it? It should be: > [[ "$(DESTDIR)" !=3D "" ]] || $(sbindir)/ldbashconfig > or > [[ "$(DESTDIR)" =3D=3D "" ]] && $(sbindir)/ldbashconfig Ok, I want to do the following: "If DESTDIR in _not_ empty - run ldbashconf= ig" So there is an error there. The correct line should be: [[ "$(DESTDIR)" =3D=3D "" ]] && $(sbindir)/ldbashconfig || : Note the '|| :' in the end. That is why you are getting an error: '[[ "/var/tmp/portage/libbash-0.9.9a/image/" =3D=3D "" ]]' condition is false, but this false is ok - we need to catch it with empy ':' command. P.S. How can one publish project in Gentoo Portage tree? > > I still get errors (Fouten ;-)): > [[ "/var/tmp/portage/libbash-0.9.9a/image/" =3D=3D "" ]] > && /usr/sbin/ldbashconfig > make[3]: *** [install-data-hook] Fout 1 > make[3]: Leaving directory > `/var/tmp/portage/libbash-0.9.9a/work/libbash-0.9.9a' > make[2]: *** [install-data-am] Fout 2 > make[2]: Leaving directory > `/var/tmp/portage/libbash-0.9.9a/work/libbash-0.9.9a' > make[1]: *** [install-am] Fout 2 > make[1]: Leaving directory > `/var/tmp/portage/libbash-0.9.9a/work/libbash-0.9.9a' > make: *** [install-recursive] Fout 1 > > greetings, > Dick > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iD8DBQBDxMIW6xLbhaCdQl8RAuyiAJ9W4qLncLaJB4GsAnu2zKuozgrqnQCg1l/t > pujiHBDJHc98+rLbKfKKhik=3D > =3DHzHJ > -----END PGP SIGNATURE----- > > > -- Zaar |