From owner-svn-ports-head@FreeBSD.ORG Mon Sep 1 17:18:13 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24215B83; Mon, 1 Sep 2014 17:18:13 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1008C15A9; Mon, 1 Sep 2014 17:18:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s81HICSK046206; Mon, 1 Sep 2014 17:18:12 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s81HICYY046205; Mon, 1 Sep 2014 17:18:12 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201409011718.s81HICYY046205@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Mon, 1 Sep 2014 17:18:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366904 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2014 17:18:13 -0000 Author: antoine Date: Mon Sep 1 17:18:12 2014 New Revision: 366904 URL: http://svnweb.freebsd.org/changeset/ports/366904 QAT: https://qat.redports.org/buildarchive/r366904/ Log: Commit non bikeshed part of Differential Revision D582 makepatch target improvement: - spurious ./ is removed from file names - timestamps are normalized Submitted by: danfe With hat: portmgr Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Mon Sep 1 17:12:32 2014 (r366903) +++ head/Mk/bsd.port.mk Mon Sep 1 17:18:12 2014 (r366904) @@ -1193,15 +1193,17 @@ STRIPBIN= ${STRIP_CMD} makepatch: @${MKDIR} ${FILESDIR} @(cd ${PATCH_WRKSRC}; \ - for i in `find . -type f -name '*.orig'`; do \ - ORG=$$i; \ - NEW=$${i%.orig}; \ - cmp -s $${ORG} $${NEW} && continue; \ - OUT=${FILESDIR}`${ECHO} $${NEW} | \ - ${SED} -e 's|/|__|g' \ - -e 's|^\.__|/patch-|'`; \ - ${ECHO} ${DIFF} -ud $${ORG} $${NEW} '>' $${OUT}; \ - ${DIFF} -ud $${ORG} $${NEW} > $${OUT} || ${TRUE}; \ + for f in `${FIND} . -type f -name '*.orig'`; do \ + ORIG=$${f#./}; \ + NEW=$${ORIG%.orig}; \ + cmp -s $${ORIG} $${NEW} && continue; \ + PATCH=`${ECHO} $${NEW} | ${SED} -e 's|/|__|g'`; \ + OUT=${FILESDIR}/patch-$${PATCH}; \ + ${ECHO} ${DIFF} -ud $${ORIG} $${NEW} '>' $${OUT}; \ + TZ=UTC ${DIFF} -ud $${ORIG} $${NEW} | ${SED} -e \ + '/^---/s|\.[0-9]* +0000$$| UTC|' -e \ + '/^+++/s|\([[:blank:]][-0-9:.+]*\)*$$||' \ + > $${OUT} || ${TRUE}; \ done \ ) .endif