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 |