diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 14:36:22 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2014-06-26 15:32:53 +0200 |
commit | f4cf9fe05bb3f32fabea4e54dd92d368967a80da (patch) | |
tree | 487180fa9866985ea7b28e625651765d86f515c3 /scripts/combo-layer-hook-default.sh | |
download | poky-f4cf9fe05bb3f32fabea4e54dd92d368967a80da.tar.gz |
initial commit for Enea Linux 4.0
Migrated from the internal git server on the daisy-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'scripts/combo-layer-hook-default.sh')
-rwxr-xr-x | scripts/combo-layer-hook-default.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/combo-layer-hook-default.sh b/scripts/combo-layer-hook-default.sh new file mode 100755 index 0000000000..8b148aca07 --- /dev/null +++ b/scripts/combo-layer-hook-default.sh | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/bin/sh | ||
2 | # Hook to add source component/revision info to commit message | ||
3 | # Parameter: | ||
4 | # $1 patch-file | ||
5 | # $2 revision | ||
6 | # $3 reponame | ||
7 | |||
8 | patchfile=$1 | ||
9 | rev=$2 | ||
10 | reponame=$3 | ||
11 | |||
12 | sed -i -e "s#^Subject: \[PATCH\] \(.*\)#Subject: \[PATCH\] $reponame: \1#" $patchfile | ||
13 | sed -i -e "0,/^Signed-off-by:/s#\(^Signed-off-by:.*\)#\($reponame rev: $rev\)\n\n\1#" $patchfile | ||