On 8/3/10, Ludovic Rousseau <[email protected]> wrote:
> 2010/8/2 Luisa <[email protected]>:
>> What about this:
>>
>> std_sysconfdir='${prefix}/etc'
>>
>> if test x"${sysconfdir}" == x"${std_sysconfdir}"; then
>> sysconfdir=/etc
>> fi
>>
>> or even simplier, since herarchy or prefixes aren't likely to change:
>>
>> if test x"${sysconfdir}" == x'${prefix}/etc'; then
>> sysconfdir=/etc
>> fi
>
> That would change the semantic.
> If you use ./configure with no argument you will get:
> System binaries: /usr/local/sbin
> Configuration dir: /etc/reader.conf.d
>
> before you got:
> System binaries: /usr/local/sbin
> Configuration dir: /usr/local/etc/reader.conf.d
>
> I do not want to change the default values, but just the value when
> prefix=/usr
>
I got it wrong then, just adapt it to your needs:
if test x"${sysconfdir}" == x"/usr"; then
sysconfdir="/etc"
fi
>> Also, as I'm begining to study the library in order to adapt my
>> reader, is there any chance to have the code properly idented? I can
>> do it with no hassle.
>
> It depends on what you call "properly idented".
>
>> I don't know what sort of editors do you guys use, but on a terminal
>> it is pretty much unreadable:
>
> The code uses a tabulation of 4.
> If you just display the code with a tabulation of 8 it will looks ugly.
>
>> http://openscd.googlecode.com/files/shot-wrong-1.png
>> http://openscd.googlecode.com/files/shot-wrong-2.png
>> http://openscd.googlecode.com/files/shot-ok-1.png
>> http://openscd.googlecode.com/files/shot-ok-2.png
>
> You are also changing the position of the { }.
> I do not like that change.
>
> You can use indent(1) to indent the code. I use the following
> configuration (plus manual corrections):
> --blank-lines-after-declarations
> --blank-lines-after-procedures
> --brace-indent0
> --continuation-indentation4
> --dont-break-procedure-type
> --dont-line-up-parentheses
> --indent-level4
> --tab-size4
> --no-blank-lines-after-declarations
> --no-space-after-function-call-names
>
Thanks, I also use indent, though according to the gnu coding
conventions for several reasons, one of them being code written like
ThisFunctionWithThisName, causes me real eye-strain and can't stand it
at all, though this wasn't just about identantion.
In any case, I'll give it a go. I've instaled vmplayer an windows on
it so as to study the whole pcsc thing as I get into this, an by now
whatever the patches will go against mainstream.
> Bye
>
> --
> Dr. Ludovic Rousseau
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
>
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle