1 |
Greetings. What do you all think of this small fix for echangelog? This |
2 |
way it can work in PORTDIR_OVERLAY without having to copy skel.ChangeLog to |
3 |
the appropriate place (../../). |
4 |
|
5 |
|
6 |
--- echangelog.orig 2003-06-12 06:27:08.000000000 -0700 |
7 |
+++ echangelog 2003-06-12 06:37:48.000000000 -0700 |
8 |
@@ -30,8 +30,10 @@ |
9 |
} else { |
10 |
# No ChangeLog here, maybe we should make one... |
11 |
if (<*.ebuild>) { |
12 |
- open I, '<../../skel.ChangeLog' |
13 |
- or die "Can't open ../../skel.ChangeLog for input: $!\n"; |
14 |
+ my ($portdir) = `/usr/bin/portageq portdir 2>/dev/null`; |
15 |
+ chomp($portdir); |
16 |
+ open I, "<$portdir/skel.ChangeLog" |
17 |
+ or die "Can't open $portdir/skel.ChangeLog for input: $!\n"; |
18 |
{ local $/ = undef; $text = <I>; } |
19 |
close I; |
20 |
my ($cwd) = getcwd(); |
21 |
|
22 |
|
23 |
---max kalika |
24 |
--max@×××××××××.edu |
25 |
-lsit systems administrator |
26 |
|
27 |
-- |
28 |
gentoo-dev@g.o mailing list |