Re: Help needed with debconf

2004-12-17 Thread Christoffer Sawicki
> > if [ "$variant" == "Unicode" ]; then > > > > That is a bashism which will fail if /bin/sh is dash. Use > > [ "foo" = "bar" ] instead. > > Thanks... are there any more pitfalls like this? [ expr -a expr ] is a pretty common "mistake". [ expr ] && [ expr ] should be used instead. (The same with

Re: Help needed with debconf

2004-12-16 Thread Andreas Metzler
"Arne Götje" <[EMAIL PROTECTED]> wrote: > On Wednesday 15 December 2004 16:32, Andreas Metzler wrote: >> postinst: >> #!/bin/sh >> [...] >> if [ "$variant" == "Unicode" ]; then >> That is a bashism which will fail if /bin/sh is dash. Use >> [ "foo" = "bar" ] instead. > Thanks... are there any mo

Re: Help needed with debconf

2004-12-16 Thread Arne GÃtje (éçè)
On Wednesday 15 December 2004 17:04, Bartosz Fenski aka fEnIo wrote: > You didn't attached your rules file and I suppose that there is a > problem, which cause not displaying your question. > > Are you sure you've got dh_installdebconf in your binary-common > target in rules file? Otherwise your de

Re: Help needed with debconf

2004-12-16 Thread Arne GÃtje (éçè)
On Wednesday 15 December 2004 16:32, Andreas Metzler wrote: > postinst: > #!/bin/sh > [...] > if [ "$variant" == "Unicode" ]; then > > That is a bashism which will fail if /bin/sh is dash. Use > [ "foo" = "bar" ] instead. Thanks... are there any more pitfalls like this? Scripts work now. Thanks.

Re: Help needed with debconf

2004-12-16 Thread Arne GÃtje (éçè)
On Wednesday 15 December 2004 17:04, Bartosz Fenski aka fEnIo wrote: > You didn't attached your rules file and I suppose that there is a > problem, which cause not displaying your question. > > Are you sure you've got dh_installdebconf in your binary-common > target in rules file? Otherwise your de

Some advices about debconf i18n (was: Re: Help needed with debconf)

2004-12-16 Thread Christian Perrier
A bit out of topic and not helpful for your main problem, but please find a little advice about the templates themselves... First of all, please make them translatable. man po-debconf will give you the needed information, but it's basically a matter of prepending Choices and Description with "_"

Re: Help needed with debconf

2004-12-15 Thread Bartosz Fenski aka fEnIo
On Wed, Dec 15, 2004 at 01:34:40PM +0800, Arne Götje (?) wrote: > Further more, the dialog I have created in config gets never displayed > to the user... :( > > I have attached the config, templates and postinst files. You didn't attached your rules file and I suppose that there is a pro

Re: Help needed with debconf

2004-12-15 Thread Andreas Metzler
"Arne Götje" <[EMAIL PROTECTED]> wrote: > I need some help with debconf, especially for the config and postinst > scripts. > I tried to craft my own ones for my font package and when I try to > install the package the postinst script exits with status 10. What does > this mean? > Further more, t