From owner-freebsd-ports Mon Nov 3 10:09:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA20368 for ports-outgoing; Mon, 3 Nov 1997 10:09:40 -0800 (PST) (envelope-from owner-freebsd-ports) Received: from shasta.wstein.com (joes@shasta.wstein.com [207.173.11.132]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA20357; Mon, 3 Nov 1997 10:09:34 -0800 (PST) (envelope-from joes@shasta.wstein.com) Received: (from joes@localhost) by shasta.wstein.com (8.8.8/8.8.8) id KAA18365; Mon, 3 Nov 1997 10:09:22 -0800 (PST) Date: Mon, 3 Nov 1997 10:09:22 -0800 (PST) Message-Id: <199711031809.KAA18365@shasta.wstein.com> To: FreeBSD-gnats-submit@freebsd.org, ports@freebsd.org Subject: no 'update' target in /usr/ports/Makefile From: joes@seaport.net Reply-To: joes@seaport.net X-send-pr-version: 3.2 Sender: owner-freebsd-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Submitter-Id: current-users >Originator: Joseph Stein >Organization: >Confidential: no >Synopsis: no 'update' target in /usr/ports/Makefile >Severity: non-critical >Priority: medium >Category: ports <[ bin | conf | docs | gnu | i386 | kern | misc | ports ]> >Release: FreeBSD 2.2.5-STABLE i386 >Class: change-request >Environment: >Description: I thought it would be a good time to update my ports tree, and tried to run 'make update' from /usr/ports... It didn't work :) >How-To-Repeat: cd /usr/ports make update >Fix: Note that this will require setting $PORTSSUPFILE, either in /etc/make.conf or in the command line... See next PR. --- /usr/ports/Makefile Sat Oct 4 08:54:31 1997 +++ /home/./joes/Makefile Mon Nov 3 10:04:12 1997 @@ -59,3 +59,23 @@ .else @grep -i ${key} ${.CURDIR}/INDEX | awk -F\| '{ printf("Port:\t%s\nPath:\t%s\nInfo:\t%s\nMaint:\t%s\nIndex:\t%s\nB-deps:\t%s\nR-deps:\t%s\n\n", $$1, $$2, $$4, $$6, $$7, $$8, $$9); }' .endif + +# +# update +# +# Update the ports tree, by running sup and/or running cvs to update to the +# latest copy. +# +update: +.if defined(SUP_UPDATE) + @echo "--------------------------------------------------------------" + @echo "Running sup" + @echo "--------------------------------------------------------------" + @${SUP} ${SUPFLAGS} ${PORTSSUPFILE} +.endif +.if defined(CVS_UPDATE) + @echo "--------------------------------------------------------------" + @echo "Updating /usr/ports from cvs repository" ${CVSROOT} + @echo "--------------------------------------------------------------" + cd ${.CURDIR} && cvs -q update -P -d +.endif