Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Andreas Schwab <schwab@suse.de>,
	binutils@sources.redhat.com, gdb-patches@sources.redhat.com
Cc: Ian Lance Taylor <ian@wasabisystems.com>
Subject: [patch/rfc] Skip .cvsfiles in src-release; Was: [rfa/binutils] distclean .cvsignore?
Date: Sat, 28 Feb 2004 20:01:00 -0000	[thread overview]
Message-ID: <4040F391.30401@gnu.org> (raw)
In-Reply-To: <jek727ox4l.fsf@sykes.suse.de>

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

The attached modifies src-release to prune .cvsignore when building a 
release.  Any problems with this one?  (note, I'm still testing it, 
chug, chug).

Andrew

[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1159 bytes --]

2004-02-28  Andrew Cagney  <cagney@redhat.com>

	* src-release (CVS_NAMES): Define.
	(do-tar, do-tar): Prune $(CVS_NAMES).

Index: src-release
===================================================================
RCS file: /cvs/src/src/src-release,v
retrieving revision 1.9
diff -u -r1.9 src-release
--- src-release	15 Jan 2004 23:24:29 -0000	1.9
+++ src-release	28 Feb 2004 19:59:01 -0000
@@ -208,11 +208,14 @@
 	-rm -f $(PACKAGE)-$(VER)
 	ln -s proto-toplev $(PACKAGE)-$(VER)
 
+CVS_NAMES= \( -name CVS -o -name '\.cvsignore' \)
+
 .PHONY: do-tar
 do-tar:
 	echo "==> Making $(PACKAGE)-$(VER).tar"
 	-rm -f $(PACKAGE)-$(VER).tar
-	find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
+	find $(PACKAGE)-$(VER) -follow $(CVS_NAMES) -prune \
+			-o -type f -print \
 		| tar cTfh - $(PACKAGE)-$(VER).tar
 
 .PHONY: do-bz2
@@ -224,7 +227,8 @@
 .PHONY: do-md5sum
 do-md5sum:
 	echo "==> Adding md5 checksum to top-level directory"
-	cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
+	cd proto-toplev && find * -follow $(CVS_NAMES) -prune \
+			-o -type f -print \
 		| xargs $(MD5PROG) > ../md5.sum
 	mv md5.sum proto-toplev
 

  parent reply	other threads:[~2004-02-28 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-28 17:59 Andrew Cagney
     [not found] ` <m34qtbqdlm.fsf@gossamer.airs.com>
     [not found]   ` <4040E14C.6090607@gnu.org>
     [not found]     ` <jek727ox4l.fsf@sykes.suse.de>
2004-02-28 20:01       ` Andrew Cagney [this message]
2004-02-28 21:37         ` [patch/rfc] Skip .cvsfiles in src-release; Was: " Andreas Schwab
2004-02-28 21:54           ` Andrew Cagney
2004-02-28 22:16             ` Andreas Schwab
2004-02-28 22:19         ` Ian Lance Taylor
2004-02-28 23:24           ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4040F391.30401@gnu.org \
    --to=cagney@gnu.org \
    --cc=binutils@sources.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ian@wasabisystems.com \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox