summaryrefslogtreecommitdiffstats
path: root/abs/extra/rpmextract/rpmextract.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/rpmextract/rpmextract.sh')
-rw-r--r--abs/extra/rpmextract/rpmextract.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/abs/extra/rpmextract/rpmextract.sh b/abs/extra/rpmextract/rpmextract.sh
new file mode 100644
index 0000000..47ad01d
--- /dev/null
+++ b/abs/extra/rpmextract/rpmextract.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ "$1" = "" -o ! -e "$1" ]; then
+ echo "no package supplied" 1>&2
+ exit 1
+fi
+rpm2cpio $1 | bsdtar -xf -