aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/process_configs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/process_configs.sh')
-rwxr-xr-xSOURCES/process_configs.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/SOURCES/process_configs.sh b/SOURCES/process_configs.sh
index 9cd5778..4314879 100755
--- a/SOURCES/process_configs.sh
+++ b/SOURCES/process_configs.sh
@@ -148,7 +148,8 @@ parsenewconfigs()
/usr/bin/awk -v BASE="$tmpdir" '
BEGIN { inpatch=0;
outfile="none";
- symbol="none"; }
+ symbol="none";
+ commit=""; }
/^Symbol: .*$/ {
split($0, a, " ");
symbol="CONFIG_"a[2];
@@ -160,9 +161,11 @@ parsenewconfigs()
}
else {
if (symbol != "none") {
+ print "# Commit: "commit >> outfile
system("cat " outfile " " BASE "/" symbol " > " BASE "/tmpf");
system("mv " BASE "/tmpf " BASE "/" symbol);
symbol="none"
+ commit=""
}
outfile="none"
inpatch = 0;
@@ -173,6 +176,15 @@ parsenewconfigs()
print "# "$0 >> outfile;
}
}
+ /^Defined at .*$/ {
+ split($0, x, " ");
+ filenum=x[3];
+ split(filenum, x, ":");
+ file=x[1]
+ line=x[2]
+ cmd="git blame -L " line "," line " " file " | cut -d \" \" -f1 | xargs git log --pretty=format:\"%C(auto)%h %C(cyan)('%s')\" -1"
+ cmd | getline commit
+ }
' .helpnewconfig