repo.or.cz
/
oi-userland.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git]
/
components
/
archiver
/
rpm2cpio
/
src
/
rpm2cpio.sh
blob
38ab79f8d12871c80269a225ee68d30dd2e82565
1
#!/bin/sh
2
3
# NB! needs bsdtar/libarchive v2.8+
4
5
PATH
=/
bin
:/
usr
/
bin
6
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
15
fi
16
17
/
usr
/
bin
/
bsdtar cf
-
--format
=
newc @
- <
${f}