aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/image-convert/cpio2tar
blob: 7f2c92fe26acb19508e372d71bcd74a54aee309b (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

STAGING= #~/linux-ppc/build-oe-angstrom/tmp/staging/i686-linux/bin/

${STAGING}fakeroot bash -c " \
rm -rf scratch; mkdir scratch; \
cd scratch; gzip -d -c ../$1 | cpio -i --make-directories; \
cd ..; \
tar -cj -C scratch -f $(basename $1 .cpio.gz).tar.bz2 ."