mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
The patch below implements the following changes:
- Add a dummy Signed-off-by line to the generated patch, such that checkpatch doesn't complain that it's missing. - Sort the names of source files (through ls) before using these, such that the generated patch is the same during each run. - Fixed a bug in #elif handling (this bug is not triggered by the current SCST code). This patch has been tested by comparing the output of the old and the new generate-kernel-patch script. Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@530 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -127,7 +127,9 @@ function handle_if()
|
||||
}
|
||||
else
|
||||
{
|
||||
sub("^+#elif ", "+#if ! " + decision[if_nesting_level] + " && ", evaluated)
|
||||
sub("^+#elif ",
|
||||
sprintf("+#if ! %d \\&\\& ", decision[if_nesting_level]),
|
||||
evaluated)
|
||||
evaluated = evaluate(evaluated)
|
||||
}
|
||||
decision[if_nesting_level] = evaluated
|
||||
|
||||
Reference in New Issue
Block a user