Gentoo Archives: gentoo-dev

From: Max Kalika <max+lists.gentoo-dev@×××××××××.edu>
To: gentoo-dev@g.o
Subject: [gentoo-dev] RFC for a small change to echangelog
Date: Thu, 12 Jun 2003 20:45:09
Message-Id: 113160000.1055450705@valkyrie.lsit.ucsb.edu
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 = <I>; }
         close I;
         my ($cwd) = getcwd();


---max kalika
--max@×××××××××.edu
-lsit systems administrator

--
gentoo-dev@g.o mailing list