[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#225004: tetex-extra: Type1 fonts should be in a separate package



Hilmar Preusse <hille42@web.de> wrote:

> dh_link don't like directory as link name. So I have to paste the
> name of each file behind usr/X11R6/lib/X11/fonts/Type1/. Does anybody
> has a quick solution for that (beside cat tetex-extra-fonts.files
> |cut -d / -f 8)?

sed? See below.

>> ln -s `cat debian/tetex-extra-fonts.files|sed s#^usr/#../../../../../#g` debian/tetex-base/usr/X11R6/lib/X11/fonts/Type1/
>> 
> Well, I don't really expect it to happen, but what if the number of
> ../ changes?

Same problem as if your the font files you are linking to are moved to
some other place. The only difference is readability (in case you launch
dh_link only once, which I will consider as the only acceptable
solution to save build time).

>> sed -e 's#^#usr/X11R6/lib/X11/fonts/Type1/ #g' \
>>   tetex-base-2.0.2/debian/tetex-extra-fonts.files >> debian/tetex-base.links
>> dh_link -p tetex-base 
>> 
> Way round. First the file, then the link.

Is there a problem with:

sed -ne \
  's@^.*[/]\([^/]\{1,\}\)$$@& usr/X11R6/lib/X11/fonts/Type1/\1@p' \
  debian/tetex-extra-fonts.files > debian/yourx11fontpackage.links

If so, which problem?

-- 
Florent



Reply to: