prepare-kernel is broken
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
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
@@ -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.
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
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.
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