1 |
I've been cleaning up media-fonts/ to work with modular-X, and I see a |
2 |
lot of ebuilds with stuff like this: |
3 |
for font in *.bdf; do |
4 |
/usr/X11R6/bin/bdftopcf ${font} > `basename $font .bdf`.pcf |
5 |
done |
6 |
gzip *.pcf |
7 |
|
8 |
For having 100 files in *bdf, this is so serial it's painful. |
9 |
|
10 |
While this is a daunting task to accomplish, it would be worthwhile for |
11 |
developers to attack poor coding like this and replace it with nicer stuff. |
12 |
|
13 |
The above for example should be replaced with a small makefile: |
14 |
%.pcf: %.bdf |
15 |
bdftopcf $< -o $@ |
16 |
%.pcf.gz: %.pcf |
17 |
gzip -9 $< |
18 |
BDFFILES = # files go here |
19 |
PCFFILES = $(BDFFILES:.bdf=.pcf) |
20 |
PCFFILES_GZ = $(BDFFILES:.bdf=.pcf.gz) |
21 |
all: $(PCFFILES_GZ) |
22 |
clean: |
23 |
rm -f $(PCFFILES) $(PCFFILES_GZ) |
24 |
|
25 |
Is this really too much work to get developers to do? I don't think so. |
26 |
|
27 |
(And no, this email wasn't prompted by one of ciaranm's diversions about SPARC having many CPUs). |
28 |
|
29 |
-- |
30 |
Robin Hugh Johnson |
31 |
E-Mail : robbat2@g.o |
32 |
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85 |