mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] Add support for xz'd patches
Date: Mon, 29 Apr 2013 13:27:09 +0200	[thread overview]
Message-ID: <1367234829-4587-1-git-send-email-bernhard@bwalle.de> (raw)

Since kernel.org provides their patches as .xz-compressed files, that's
quite useful.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 scripts/lib/ptxd_make_world_patchin.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
index 8f9bd42..d9d1494 100644
--- a/scripts/lib/ptxd_make_world_patchin.sh
+++ b/scripts/lib/ptxd_make_world_patchin.sh
@@ -76,7 +76,7 @@ export -f ptxd_make_world_patchin_apply_git_init
 # create a directory containing the patches and the selected series
 # file. name that file "series".
 #
-# decompress "bz2" and "gz" patches on the fly
+# decompress "bz2", "gz" and "xz" patches on the fly
 #
 ptxd_make_world_patchin_apply_git_compat()
 {
@@ -106,6 +106,7 @@ ptxd_make_world_patchin_apply_git_compat()
 	    ""|"#"*) continue ;;	# skip empty lines and comments
 	    *.gz)  cat="zcat" ;;
 	    *.bz2) cat="bzcat" ;;
+	    *.xz)  cat="xzcat" ;;
 	    *)
 		ln -s "../patches/${patch}" "${pkg_patchin_dir}/.ptxdist/git-patches/${patch_file}" &&
 		echo "${patch_file}" "${para}" >> "${pkg_patchin_dir}/.ptxdist/git-patches/series" || return
@@ -180,6 +181,7 @@ ptxd_make_world_patchin_apply_patch()
 	    ""|"#"*) continue ;;	# skip empty lines and comments
 	    *.gz)    cat=zcat ;;
 	    *.bz2)   cat=bzcat ;;
+	    *.xz)    cat=xzcat ;;
 	    *)       cat=cat ;;
 	esac
 
@@ -259,6 +261,7 @@ ptxd_make_world_patchin_apply()
 	find \
 	    -name "*.diff" -o \
 	    -name "*.patch" -o \
+	    -name "*.xz" -o \
 	    -name "*.bz2" -o \
 	    -name "*.gz" | \
 	    sed -e "s:^[.]/::" | sort > \
-- 
1.8.2.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2013-04-29 11:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-29 11:27 Bernhard Walle [this message]
2013-04-29 11:29 ` Marc Kleine-Budde
2013-04-29 11:35   ` Bernhard Walle
2013-04-29 11:38     ` Bernhard Walle
2013-05-03 17:03 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367234829-4587-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox