diff options
Diffstat (limited to 'yocto-poky/scripts/combo-layer-hook-default.sh')
-rwxr-xr-x | yocto-poky/scripts/combo-layer-hook-default.sh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/yocto-poky/scripts/combo-layer-hook-default.sh b/yocto-poky/scripts/combo-layer-hook-default.sh deleted file mode 100755 index 1e3a3b9bc..000000000 --- a/yocto-poky/scripts/combo-layer-hook-default.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# Hook to add source component/revision info to commit message -# Parameter: -# $1 patch-file -# $2 revision -# $3 reponame - -patchfile=$1 -rev=$2 -reponame=$3 - -sed -i -e "0,/^Subject:/s#^Subject: \[PATCH\] \($reponame: \)*\(.*\)#Subject: \[PATCH\] $reponame: \2#" $patchfile -if grep -q '^Signed-off-by:' $patchfile; then - # Insert before Signed-off-by. - sed -i -e "0,/^Signed-off-by:/s#\(^Signed-off-by:.*\)#\(From $reponame rev: $rev\)\n\n\1#" $patchfile -else - # Insert before final --- separator, with extra blank lines removed. - perl -e "\$_ = join('', <>); s/^(.*\S[ \t]*)(\n|\n\s*\n)---\n/\$1\n\nFrom $reponame rev: $rev\n---\n/s; print;" $patchfile >$patchfile.tmp - mv $patchfile.tmp $patchfile -fi |