[Pkg-xen-devel] [PATCH 11/19] d/shuffle-boot-files: Rework version string handling

Hans van Kranenburg hans at knorrie.org
Fri Dec 4 21:40:18 GMT 2020


On 9/21/20 12:38 AM, Elliott Mitchell wrote:
> Rework $verstring to end up *strictly* with the version string, not
> "xen-<version>".  This allows capturing files which *don't* include
> "xen-" in their filenames.  Notably "xenpolicy" has been added recently.
> 
> Signed-off-by: Elliott Mitchell <ehem+debian at m5p.com>
> ---
>  debian/shuffle-boot-files | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/debian/shuffle-boot-files b/debian/shuffle-boot-files
> index e9058d0e3a..88bcdd8d68 100755
> --- a/debian/shuffle-boot-files
> +++ b/debian/shuffle-boot-files
> @@ -22,9 +22,9 @@ mkdir -p "$dest"
>  
>  verstring="$(readlink debian/tmp/boot/xen.?z* ||
>              readlink debian/tmp/boot/xen)"
> -verstring="${verstring##*/}"
> +verstring="${verstring##*xen-}"
>  verstring="${verstring%.?z*}"
>  
>  for f in `cd "$t/boot" && find * -type f -print`; do
> -	cp -v "$t/boot/$f" "$dest/${f/$verstring/xen-$newvers}"
> +	cp -v "$t/boot/$f" "$dest/${f/$verstring/$newvers}"
>  done
> 

Use git send-email.

K



More information about the Pkg-xen-devel mailing list