* [gentoo-dev] RFC for a small change to echangelog
@ 2003-06-12 20:45 Max Kalika
0 siblings, 0 replies; only message in thread
From: Max Kalika @ 2003-06-12 20:45 UTC (permalink / raw
To: gentoo-dev
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@lsit.ucsb.edu
-lsit systems administrator
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-12 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-12 20:45 [gentoo-dev] RFC for a small change to echangelog Max Kalika
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox