Date: Mon, 5 Mar 2001 09:38:57 +0000 From: Nik Clayton <nik@freebsd.org> To: Wolfram Schneider <wosch@panke.de.freebsd.org> Cc: Nik Clayton <nik@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: www/en/docs Makefile Message-ID: <20010305093857.A2592@canyon.nothing-going-on.org> In-Reply-To: <20010304223255.A1254@paula.panke.de.freebsd.org>; from wosch@panke.de.freebsd.org on Sun, Mar 04, 2001 at 10:32:55PM %2B0100 References: <200102241804.f1OI4Ap34648@freefall.freebsd.org> <20010304223255.A1254@paula.panke.de.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Sun, Mar 04, 2001 at 10:32:55PM +0100, Wolfram Schneider wrote:
> On 2001-02-24 10:04:10 -0800, Nik Clayton wrote:
> > nik 2001/02/24 10:04:10 PST
> >
> > Modified files:
> > en/docs Makefile
> > Log:
> > unset(1) returns '1' if the variable doesn't exist, so use the '||'
> > operator rather than the '&&' operator.
>
> this is hard to read shell code:
>
> all install clean:
> (cd ../../../doc/en_US.ISO_8859-1 && unset DESTDIR || ${MAKE} FORMATS=ht
> ml-split DOCDIR=${DESTDIR}/data/docs ${.TARGET})
>
> what does it mean?
>
> 1. unset the variable DESTDIR and execute the targets in the
> directory ../../../doc/en_US.ISO_8859-1
Correct.
Both the web build and the doc build honour the DESTDIR variable, with
DESTDIR taking precedence over DOCDIR. So if you had DESTDIR set in the
environment to something like /usr/local/www/data/, that's where the
docs would get installed.
The "unset" builtin returns a non-zero exit value if the variable
doesn't exist in the environment. This halted the build (and is the
reason why my first commit to this broke the build -- I tested it with
DESTDIR on the command line, which worked, rather than in the
environment, which failed). Hence the '||' connector, rather than the
'&&' connector which I originally used.
N
--
FreeBSD: The Power to Serve http://www.freebsd.org/
FreeBSD Documentation Project http://www.freebsd.org/docproj/
--- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 ---
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjqjXrAACgkQk6gHZCw343XkggCfZm4lJ+Du06TGq4EWfwUofmZ8
VEQAnRwFjolbdtM8WbPfype3CL20McX5
=WChk
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010305093857.A2592>
