From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32581 invoked by uid 1002); 12 Jun 2003 20:45:09 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 6627 invoked from network); 12 Jun 2003 20:45:09 -0000 Date: Thu, 12 Jun 2003 13:45:05 -0700 From: Max Kalika To: gentoo-dev@gentoo.org Message-ID: <113160000.1055450705@valkyrie.lsit.ucsb.edu> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [gentoo-dev] RFC for a small change to echangelog X-Archives-Salt: f50f9898-76f3-461c-9887-a260a4efc04c X-Archives-Hash: 7bc028f2546dff88fdc9d8211d3dd824 Greetings. What do you all think of this small fix for echangelog? This way it can work in PORTDIR_OVERLAY without having to copy skel.ChangeLog to the appropriate place (../../). --- echangelog.orig 2003-06-12 06:27:08.000000000 -0700 +++ echangelog 2003-06-12 06:37:48.000000000 -0700 @@ -30,8 +30,10 @@ } else { # No ChangeLog here, maybe we should make one... if (<*.ebuild>) { - open I, '<../../skel.ChangeLog' - or die "Can't open ../../skel.ChangeLog for input: $!\n"; + my ($portdir) = `/usr/bin/portageq portdir 2>/dev/null`; + chomp($portdir); + open I, "<$portdir/skel.ChangeLog" + or die "Can't open $portdir/skel.ChangeLog for input: $!\n"; { local $/ = undef; $text = ; } close I; my ($cwd) = getcwd(); ---max kalika --max@lsit.ucsb.edu -lsit systems administrator -- gentoo-dev@gentoo.org mailing list