From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Fogel Newsgroups: gmane.emacs.devel Subject: Re: [rudy@gnu.org: Re: [Savannah-hackers] [teirllm@dms.auburn.edu: Re: emacs/src/regex.c]] Date: 28 Dec 2003 17:51:03 -0600 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87hdzk4i3c.fsf@floss.red-bean.com> References: <20031225145032.GA15377@fencepost> <3405-Thu25Dec2003222145+0200-eliz@elta.co.il> <20031225213656.GB17775@fencepost> <20031227081754.GA8102@fencepost> Reply-To: kfogel@red-bean.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1072673935 31123 80.91.224.253 (29 Dec 2003 04:58:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2003 04:58:55 +0000 (UTC) Cc: eliz@elta.co.il, storm@cua.dk, Rudy Gevaert , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Dec 29 05:58:48 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AapUO-0001RE-00 for ; Mon, 29 Dec 2003 05:58:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AapUO-0000sE-00 for ; Mon, 29 Dec 2003 05:58:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaqPZ-0006m1-Dg for emacs-devel@quimby.gnus.org; Mon, 29 Dec 2003 00:57:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AaqPU-0006lq-Ns for emacs-devel@gnu.org; Mon, 29 Dec 2003 00:57:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AaqOx-0006Qc-Sq for emacs-devel@gnu.org; Mon, 29 Dec 2003 00:57:47 -0500 Original-Received: from [207.115.63.73] (helo=pimout5-ext.prodigy.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AaqOx-0006P2-Jr; Mon, 29 Dec 2003 00:57:15 -0500 Original-Received: from floss.red-bean.com (adsl-65-42-91-62.dsl.chcgil.ameritech.net [65.42.91.62]) by pimout5-ext.prodigy.net (8.12.10/8.12.10) with ESMTP id hBT4th6R133938; Sun, 28 Dec 2003 23:55:43 -0500 Original-Received: from kfogel by floss.red-bean.com with local (Exim 3.34 #1 (Debian)) id 1AakgZ-0003j5-00; Sun, 28 Dec 2003 17:51:03 -0600 Original-To: rms@gnu.org Emacs: the only text-editing software to require its own heat sink. In-Reply-To: Original-Lines: 38 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:18896 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18896 Richard Stallman writes: > > 1. Do something to prohibit commits to these two files, in Emacs. > > > > 2. Have a cron job which copies the master files from gnulib to Emacs > > once per hour. > > > Rudy, can this be done? > > I can do (2), but have no idea how (1) can be done > > Does anyone know enough about CVS to tell us? Tweaking the ownership/perms of the RCS ,v files will probably not help, because CVS operates by copying and renaming. Instead, we need a line in CVSROOT/commitinfo, something like this: emacs/src /path/to/specialized/protection-script.sh (It starts at the beginning of the line, of course, I'm just indenting for clarity here.) Then 'protection-script.sh' would look like this: #!/bin/sh # The first argument is always the absolute path to the repository # subdir. Shift past that to get to the individual files. shift for FNAME in $@; do if [ ${FNAME} = regex.c -o ${FNAME} = regex.h ]; then echo "Cannot commit to ${FNAME} in this repository." exit 1 fi done exit 0 Hope this helps, -Karl