libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / archiver / rpm2cpio / src / rpm2cpio.sh
blob38ab79f8d12871c80269a225ee68d30dd2e82565
1 #!/bin/sh
3 # NB! needs bsdtar/libarchive v2.8+
5 PATH=/bin:/usr/bin
7 if [ $# -eq 0 -a ! -t 0 ]; then
8 f=/dev/stdin
9 elif [ $# -eq 1 ]; then
10 f=$1
11 else
12 echo Usage: rpm2cpio [file.rpm]
13 echo dumps the contents to stdout as a GNU cpio archive
14 exit 0
17 /usr/bin/bsdtar cf - --format=newc @- < ${f}