From: Paulius Zaleckas <paulius.zaleckas@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH] Add support for sources in .zip
Date: Tue, 30 Nov 2010 23:19:05 +0200 [thread overview]
Message-ID: <20101130211905.24115.69245.stgit@localhost.localdomain> (raw)
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
---
package/Makefile.package.in | 1 +
scripts/unzip_wrapper.sh | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
create mode 100755 scripts/unzip_wrapper.sh
diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index 816a013..fc48ead 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -61,6 +61,7 @@ INFLATE.gz = $(ZCAT)
INFLATE.tbz = $(BZCAT)
INFLATE.tbz2 = $(BZCAT)
INFLATE.tgz = $(ZCAT)
+INFLATE.zip = scripts/unzip_wrapper.sh
INFLATE.tar = cat
# MESSAGE Macro -- display a message in bold type
diff --git a/scripts/unzip_wrapper.sh b/scripts/unzip_wrapper.sh
new file mode 100755
index 0000000..7e897e4
--- /dev/null
+++ b/scripts/unzip_wrapper.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+ZIP_TMP_DIR=`mktemp -d`
+
+unzip -q $1 -d $ZIP_TMP_DIR
+tar -cC $ZIP_TMP_DIR `ls $ZIP_TMP_DIR`
+rm -rf $ZIP_TMP_DIR
reply other threads:[~2010-11-30 21:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20101130211905.24115.69245.stgit@localhost.localdomain \
--to=paulius.zaleckas@gmail.com \
--cc=buildroot@busybox.net \
/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