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