Gentoo Archives: gentoo-dev

From: Aron Griffis <agriffis@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Minimal perl install (stage1/livecd makers might be interested?)
Date: Tue, 07 Jun 2005 19:45:31
Message-Id: 20050607194546.GX9084@kaf.zko.hp.com
In Reply to: Re: [gentoo-dev] Minimal perl install (stage1/livecd makers might be interested?) by "Robin H. Johnson"
1 Robin H. Johnson wrote:[Tue Jun 07 2005, 03:04:43PM EDT]
2 > OpenSSL mainly uses perl to generate the assembly language versions
3 > of it's commands, in an almost portable fashion. There are also
4 > a few other scripts written in perl, but again, they don't use any
5 > modules from my examination.
6
7 This isn't always an option... but how hard would it be to rewrite
8 that stuff in awk or sed?
9
10 I did something similar in mozconfig.eclass. There is a long /bin/csh
11 script that is part of the mozilla build process. It used to create
12 a dependecy from mozilla on csh... I replaced it with this:
13
14 # Simulate the silly csh makemake script
15 makemake() {
16 typeset m topdir
17 for m in $(find . -name Makefile.in); do
18 topdir=$(echo "$m" | sed -r 's:[^/]+:..:g')
19 sed -e "s:@srcdir@:.:g" -e "s:@top_srcdir@:${topdir}:g" \
20 < ${m} > ${m%.in} || die "sed ${m} failed"
21 done
22 }
23
24 Regards,
25 Aron
26
27 --
28 Aron Griffis
29 Gentoo Linux Developer

Replies