grouper-users - Re: [grouper-users] script gsh and bloc of instructions
Subject: Grouper Users - Open Discussion List
List archive
- From: Arnaud Deman <>
- To:
- Subject: Re: [grouper-users] script gsh and bloc of instructions
- Date: Wed, 11 May 2011 10:36:08 +0200
Hello,
Thanks for your answers.
Mirko, using a script to format the scripts is a good idea.
Best regards,
Arnaud.
Le mardi 10 mai 2011 à 09:41:35, Mirko Tasler a écrit :
>
> You could try something like (for Linux):
>
> for line in `cat test.gsh | sed s%\/\/.*$%%`;
> do echo -n $line;
> done > gsh.sh -
>
> (Read: Remove everything from and including // (Java's line comment)
> with sed, then remove any trailing whitespaces and forward the result to
> gsh.sh as STDIN.)
>
> Untested, I don't have a grouper install handy, but I used something
> similar to "build" our grouper shell scripts from nicely formatted
> source scripts.
>
> Hope this helps,
>
> Mirko
>
>
> On 05/10/2011 05:37 PM, Arnaud Deman wrote:
> > Hello,
> >
> > I wondered if there is a way to escape the new lines in the scripts for
> > grouper shell.
> >
> > For instance I would like to write this kind of instruction on several
> > lines :
> > if (stem == null) { stem = addStem("esup", "utilisateurs",
> > "Utilisateurs"); stem.setDescription("Racine pour les groupes
> > d'utilisateurs"); stem.store(); }
> >
> > Thansks in advance,
> > Best regards,
> > Arnaud.
> >
> >
> >
> >
--
Arnaud Deman
04 91 28 85 25
DSI - Université Paul Cézanne Aix-Marseille III
Avenue Escadrille Normandie-Niemen
13397 MARSEILLE CEDEX 20
- [grouper-users] script gsh and bloc of instructions, Arnaud Deman, 05/10/2011
- RE: [grouper-users] script gsh and bloc of instructions, Chris Hyzer, 05/10/2011
- Re: [grouper-users] script gsh and bloc of instructions, Mirko Tasler, 05/10/2011
- Re: [grouper-users] script gsh and bloc of instructions, Arnaud Deman, 05/11/2011
Archive powered by MHonArc 2.6.16.