Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2011 13:15:11 +0000 (UTC)
From:      Takahashi Yoshihiro <nyan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224780 - head/release
Message-ID:  <201108111315.p7BDFBfv094257@svn.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: nyan
Date: Thu Aug 11 13:15:11 2011
New Revision: 224780
URL: http://svn.freebsd.org/changeset/base/224780

Log:
  Allow to build a release for stable/[78] on a current box and vise versa.
  
  Approved by:	re (hrs)
  MFC after:	1 week

Modified:
  head/release/Makefile.sysinstall

Modified: head/release/Makefile.sysinstall
==============================================================================
--- head/release/Makefile.sysinstall	Thu Aug 11 13:13:08 2011	(r224779)
+++ head/release/Makefile.sysinstall	Thu Aug 11 13:15:11 2011	(r224780)
@@ -600,7 +600,11 @@ release rerelease:
 	echo "fi"				>> ${_MK}
 	echo "cd /usr/src/release"		>> ${_MK}
 	echo "make obj"				>> ${_MK}
-	echo "make -f Makefile.sysinstall \$${_RELTARGET}" >> ${_MK}
+	echo "if [ -f Makefile.sysinstall ]; then" >> ${_MK}
+	echo "  make -f Makefile.sysinstall \$${_RELTARGET}" >> ${_MK}
+	echo "else"				>> ${_MK}
+	echo "  make \$${_RELTARGET}"		>> ${_MK}
+	echo "fi"				>> ${_MK}
 	echo "echo \">>> make ${.TARGET} for ${TARGET} finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${_MK}
 	chmod 755 ${_MK}
 .if defined(NOPORTS)



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201108111315.p7BDFBfv094257>