3 # Emulates some cpio behavior using GNU tar
12 while test $# -gt 0; do
22 *) die
"cpio emulation supports only -0, -o, -iuv, -pumdl";;
30 # list only empty directories
31 if test -z "$(ls -A "$f")"; then
42 tar --create --file=- $null --files-from=-
45 test -z "$null" || die
"cpio: cannot use -0 in pass-through mode"
48 tar --create --file=- --files-from=- |
49 tar --extract --directory="$dir" --file=-