buildscript: Indicate current patch being applied

Submitted by Adrian Schmutzler on Feb. 5, 2019, 1:49 p.m.

Details

Message ID 20190205134952.1891-1-freifunk@adrianschmutzler.de
State Accepted
Headers show

Commit Message

Adrian Schmutzler Feb. 5, 2019, 1:49 p.m.
So far, we only saw the files affected, but not the patch used.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 buildscript | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/buildscript b/buildscript
index 3ba36a6a..1d527c6e 100755
--- a/buildscript
+++ b/buildscript
@@ -125,6 +125,7 @@  get_source() {
 patch_target() {
     if [ "$(find "$PWD"/build_patches/openwrt/*.patch 2> /dev/null | wc -l)" -ge 1 ]; then
         for patch in "$PWD"/build_patches/openwrt/*.patch; do
+            echo "Applying $patch:"
             patch --no-backup-if-mismatch -p1 -d "$target" -i "$patch"
         done
     fi

Comments

Christian Dresel Feb. 10, 2019, 2:40 p.m.
hi

Reviewed-by: Christian Dresel <fff@chrisi01.de>

Gruß

Christian

On 05.02.19 14:49, Adrian Schmutzler wrote:
> So far, we only saw the files affected, but not the patch used.
>
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> ---
>  buildscript | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/buildscript b/buildscript
> index 3ba36a6a..1d527c6e 100755
> --- a/buildscript
> +++ b/buildscript
> @@ -125,6 +125,7 @@ get_source() {
>  patch_target() {
>      if [ "$(find "$PWD"/build_patches/openwrt/*.patch 2> /dev/null | wc -l)" -ge 1 ]; then
>          for patch in "$PWD"/build_patches/openwrt/*.patch; do
> +            echo "Applying $patch:"
>              patch --no-backup-if-mismatch -p1 -d "$target" -i "$patch"
>          done
>      fi
Adrian Schmutzler Feb. 10, 2019, 9:49 p.m.
Applied.

> -----Original Message-----
> From: Christian Dresel [mailto:fff@chrisi01.de]
> Sent: Sonntag, 10. Februar 2019 15:41
> To: Adrian Schmutzler <freifunk@adrianschmutzler.de>; franken-
> dev@freifunk.net
> Subject: Re: [PATCH] buildscript: Indicate current patch being applied
> 
> hi
> 
> Reviewed-by: Christian Dresel <fff@chrisi01.de>
> 
> Gruß
> 
> Christian
> 
> On 05.02.19 14:49, Adrian Schmutzler wrote:
> > So far, we only saw the files affected, but not the patch used.
> >
> > Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> > ---
> >  buildscript | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/buildscript b/buildscript index 3ba36a6a..1d527c6e 100755
> > --- a/buildscript
> > +++ b/buildscript
> > @@ -125,6 +125,7 @@ get_source() {
> >  patch_target() {
> >      if [ "$(find "$PWD"/build_patches/openwrt/*.patch 2> /dev/null | wc -
> l)" -ge 1 ]; then
> >          for patch in "$PWD"/build_patches/openwrt/*.patch; do
> > +            echo "Applying $patch:"
> >              patch --no-backup-if-mismatch -p1 -d "$target" -i "$patch"
> >          done
> >      fi