########################################################################
# #
# This software is part of the ast package #
# Copyright (c) 1987-2011 AT&T Intellectual Property #
# and is licensed under the #
# Eclipse Public License, Version 1.0 #
# by AT&T Intellectual Property #
# #
# A copy of the License is available at #
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
# #
# Information and Software Systems Research #
# AT&T Research #
# Florham Park NJ #
# #
# Glenn Fowler <gsf@research.att.com> #
# #
########################################################################
:
# @(#)cpio.sh (AT&T Labs Research) 1990-08-11
#
# cpio -> pax interface script
#
command=cpio
usage="
Usage: $command -o[acvBV] [-C size] [-M mesg] [-O file | >file ] <list
$command -i[bcdfkmrtsuvBSV6] [-I file | <file] [pattern ...]
$command -p[adlmuvV] directory"
OPTSTR='abcdfiklmoprstuvBSV6C:[size]H:[format]M:[message]O:[file]?D [ pattern | directory ]'
options="-d"
blocksize=1b
exec=eval
list=""
logphys=-P
mode=""
d_default="-o nomkdir"
m_default="-pm"
u_default="-u"
r_ok="1"
w_ok="1"
p_ok="1"
eval) exec=print ;;
*) exec="eval args" ;;
esac
;;
[bsS6]) ;;
'') mode=-r ;;
-r) ;;
*) mode=x ;;
esac
;;
'') mode=-w ;;
-w) ;;
*) mode=x ;;
esac
;;
-rw) ;;
*) mode=x ;;
esac
;;
B) blocksize=5k ;;
L) logphys=-L ;;
esac
;;
esac
;;
esac
done
exit 2
;;
esac
options="$options -b $blocksize"
;;
exit 2
;;
esac
case $# in
0) ;;
*) print "$command: arguments not expected"
exit 2
;;
esac
options="$options -x $format -b $blocksize"
;;
exit 2
;;
esac
case $# in
1) ;;
exit 2
;;
esac
;;
exit 2
;;
exit 2
;;
esac
esac
esac