cpio.sh revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
2b873214c9ab511bbca437c036371ab664aedaceChristian Maeder########################################################################
c63ebf815c8a874525cf18670ad74847f7fc7b26Christian Maeder# This software is part of the ast package #
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# Copyright (c) 1987-2011 AT&T Intellectual Property #
fefee7e1dee1ee5f0768a03a4abae88d1ca2c3fdRazvan Pascanu# and is licensed under the #
75a6279dbae159d018ef812185416cf6df386c10Till Mossakowski# Eclipse Public License, Version 1.0 #
3f69b6948966979163bdfe8331c38833d5d90ecdChristian Maeder# by AT&T Intellectual Property #
75a6279dbae159d018ef812185416cf6df386c10Till Mossakowski# A copy of the License is available at #
f66fcd981f556c238df7dd6dfa42123745e3b1d2Christian Maeder# http://www.eclipse.org/org/documents/epl-v10.html #
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
f66fcd981f556c238df7dd6dfa42123745e3b1d2Christian Maeder# Information and Software Systems Research #
f66fcd981f556c238df7dd6dfa42123745e3b1d2Christian Maeder# AT&T Research #
da955132262baab309a50fdffe228c9efe68251dCui Jian# Florham Park NJ #
dda5ab793f1615c1ba1dcaa97a4346b0878da6b1Christian Maeder# Glenn Fowler <gsf@research.att.com> #
f66fcd981f556c238df7dd6dfa42123745e3b1d2Christian Maeder########################################################################
0799b5dc3f06d2640e66e9ab54b8b217348fd719Christian Maeder# @(#)cpio.sh (AT&T Labs Research) 1990-08-11
4c8d3c5a9e938633f6147b5a595b9b93bfca99e6Christian Maeder# cpio -> pax interface script
c4451dc7da4a15726ba96179aecf046a5df5cae1Christian MaederUsage: $command -o[acvBV] [-C size] [-M mesg] [-O file | >file ] <list
3c4e64e0b4361a24275ee8f308fa965ab1e52f2eHeng Jiang $command -i[bcdfkmrtsuvBSV6] [-I file | <file] [pattern ...]
fa388aea9cef5f9734fec346159899a74432ce26Christian Maeder $command -p[adlmuvV] directory"
fe4e6766a6e51cca3f8cc9632c25936af147d8b9Christian MaederOPTSTR='abcdfiklmoprstuvBSV6C:[size]H:[format]M:[message]O:[file]?D [ pattern | directory ]'
834c2e71b8e390e5b05c8d02bb6eb22621125133Markus Gross eval) exec=print ;;
6e52f1dfc0da4bc4a7701cf856641c9dce08fc7dChristian Maeder *) exec="eval args" ;;
d56ece59c372cb887355825901222b9f3377f7e6Thiemo Wiedemeyer *) print -u2 "$command: $OPTARG: formats are {asc,crc,odc,tar,star}"; exit 1 ;;
f77f29e84b3f6e791c82e61b13fbf76582bedd2fChristian Maeder I) w_ok="" p_ok="" options="$options -f '$OPTARG'" ;;
case $# in
*) print "$command: arguments not expected"
case $# in