Date: Sat, 5 Sep 2009 05:12:32 +0000 (UTC) From: John Birrell <jb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r196850 - projects/jbuild/usr.bin/jdirdep Message-ID: <200909050512.n855CWqS037787@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jb Date: Sat Sep 5 05:12:32 2009 New Revision: 196850 URL: http://svn.freebsd.org/changeset/base/196850 Log: Need to use the JBUILD environment variable in preference to expecting to use jbuild in the PATH. Modified: projects/jbuild/usr.bin/jdirdep/jdirdep.c Modified: projects/jbuild/usr.bin/jdirdep/jdirdep.c ============================================================================== --- projects/jbuild/usr.bin/jdirdep/jdirdep.c Sat Sep 5 01:55:46 2009 (r196849) +++ projects/jbuild/usr.bin/jdirdep/jdirdep.c Sat Sep 5 05:12:32 2009 (r196850) @@ -1025,7 +1025,10 @@ do_dirdep(const char *srctop, const char err(1, "Could not delete '%s/%s", curdir, MAKEFILED); #ifdef JDIRDEP - snprintf(cmd, sizeof(cmd), "jbuild gendirdep"); + const char *p_jbuild; + if ((p_jbuild = getenv("JBUILD")) == NULL) + p_jbuild = "jbuild"; + snprintf(cmd, sizeof(cmd), "%s gendirdep", p_jbuild); #else snprintf(cmd, sizeof(cmd), "build gendirdep"); #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909050512.n855CWqS037787>