Skip to contentSkip to conversation

prepare-kernel is broken

Xenomai-core Jan Kiszka 2 participants 5 messages Feb 27, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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

#1 lore raw
Quoted 9 lines · Jan Kiszka

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 :

prepare-kernel.sh +3 -3
Index: prepare-kernel.sh
===================================================================
@@ -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 &&
Signature · 4 lines
-- 


					    Gilles Chanteperdrix.
author
#2 lore raw
Quoted 5 lines · Gilles Chanteperdrix
Quoted 4 lines · Jan Kiszka

Hi,

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

Quoted 9 lines
Quoted 5 lines

.../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

#3 lore raw
Quoted 9 lines · Jan Kiszka
Quoted 8 lines · Gilles Chanteperdrix
Quoted 7 lines · Jan Kiszka

Hi,

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

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

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

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 ?

Signature · 1 line
					    Gilles Chanteperdrix.
author
#4 lore raw
Quoted 13 lines · Gilles Chanteperdrix
Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Gilles Chanteperdrix
Quoted 9 lines · Jan Kiszka

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.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

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