All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [BUG] prepare-kernel is broken
@ 2006-02-27 13:10 Jan Kiszka
  2006-02-27 13:59 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2006-02-27 13:10 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Hi,

the last check-in seems to have messed something up:

.../xenomai/scripts/prepare-kernel.sh: line 61: syntax error near
unexpected token `fi'

I do not understand what's going on here, so I don't want to hack some
probably wrong fix for this.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [BUG] prepare-kernel is broken
  2006-02-27 13:10 [Xenomai-core] [BUG] prepare-kernel is broken Jan Kiszka
@ 2006-02-27 13:59 ` Gilles Chanteperdrix
  2006-02-27 14:43   ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2006-02-27 13:59 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 375 bytes --]

Jan Kiszka wrote:
 > Hi,
 > 
 > the last check-in seems to have messed something up:
 > 
 > .../xenomai/scripts/prepare-kernel.sh: line 61: syntax error near
 > unexpected token `fi'
 > 
 > I do not understand what's going on here, so I don't want to hack some
 > probably wrong fix for this.

In order to have it work, I had to make the following changes to
revision 610 :


[-- Attachment #2: prepare-kernel.diff --]
[-- Type: text/plain, Size: 1067 bytes --]

Index: prepare-kernel.sh
===================================================================
--- prepare-kernel.sh	(revision 610)
+++ prepare-kernel.sh	(working copy)
@@ -42,7 +42,7 @@
         recursive_opt=""
         directorytype_opt=""
         if test x$recursive = xr; then
-            directorytype_opt="\( -type d -mindepth 1 \) -o"
+            directorytype_opt="( -type d -mindepth 1 ) -o"
         else
             recursive_opt="-maxdepth 1"
         fi
@@ -51,13 +51,13 @@
             link_makefiles_opt="-name Makefile -o"
         fi
 
-        if test "x$output_patch" = "x"; then
+        if test "x$output_patch" = "x" -a -e $linux_tree/$link_dir; then
             cd $linux_tree/$link_dir &&
 	    find . $recursive_opt \( $directorytype_opt \
                 $link_makefiles_opt -name $config_file -o -name '*.[chS]' \) |
             while read f; do
                 if test ! -e $xenomai_root/$target_dir/$f; then rm -Rf $f; fi
-            done; else true; fi &&
+            done
         fi
 
         cd $xenomai_root/$target_dir &&

[-- Attachment #3: .signature --]
[-- Type: text/plain, Size: 38 bytes --]


-- 


					    Gilles Chanteperdrix.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [BUG] prepare-kernel is broken
  2006-02-27 13:59 ` Gilles Chanteperdrix
@ 2006-02-27 14:43   ` Jan Kiszka
  2006-02-27 15:00     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2006-02-27 14:43 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>  > Hi,
>  > 
>  > the last check-in seems to have messed something up:
>  > 
>  > .../xenomai/scripts/prepare-kernel.sh: line 61: syntax error near
>  > unexpected token `fi'
>  > 
>  > I do not understand what's going on here, so I don't want to hack some
>  > probably wrong fix for this.
> 
> In order to have it work, I had to make the following changes to
> revision 610 :
> 

We seem to use different find versions:

...
find: warning: you have specified the -mindepth option after a
non-option argument (, but options are not positional (-mindepth affects
tests specified before it as well as those specified after it).  Please
specify options before other arguments.

[caused by revision 613]

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [BUG] prepare-kernel is broken
  2006-02-27 14:43   ` Jan Kiszka
@ 2006-02-27 15:00     ` Gilles Chanteperdrix
  2006-02-27 15:07       ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2006-02-27 15:00 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
 > Gilles Chanteperdrix wrote:
 > > Jan Kiszka wrote:
 > >  > Hi,
 > >  > 
 > >  > the last check-in seems to have messed something up:
 > >  > 
 > >  > .../xenomai/scripts/prepare-kernel.sh: line 61: syntax error near
 > >  > unexpected token `fi'
 > >  > 
 > >  > I do not understand what's going on here, so I don't want to hack some
 > >  > probably wrong fix for this.
 > > 
 > > In order to have it work, I had to make the following changes to
 > > revision 610 :
 > > 
 > 
 > We seem to use different find versions:

What about revision 614 ?

-- 


					    Gilles Chanteperdrix.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [BUG] prepare-kernel is broken
  2006-02-27 15:00     ` Gilles Chanteperdrix
@ 2006-02-27 15:07       ` Jan Kiszka
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2006-02-27 15:07 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>  > Gilles Chanteperdrix wrote:
>  > > Jan Kiszka wrote:
>  > >  > Hi,
>  > >  > 
>  > >  > the last check-in seems to have messed something up:
>  > >  > 
>  > >  > .../xenomai/scripts/prepare-kernel.sh: line 61: syntax error near
>  > >  > unexpected token `fi'
>  > >  > 
>  > >  > I do not understand what's going on here, so I don't want to hack some
>  > >  > probably wrong fix for this.
>  > > 
>  > > In order to have it work, I had to make the following changes to
>  > > revision 610 :
>  > > 
>  > 
>  > We seem to use different find versions:
> 
> What about revision 614 ?
> 

Ok, no errors, no warnings, should be ok now (at least for the --linux=
scenario).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-02-27 15:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 13:10 [Xenomai-core] [BUG] prepare-kernel is broken Jan Kiszka
2006-02-27 13:59 ` Gilles Chanteperdrix
2006-02-27 14:43   ` Jan Kiszka
2006-02-27 15:00     ` Gilles Chanteperdrix
2006-02-27 15:07       ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.