* extfs/uar.in: Implement "copyin" and "rm" commands.

This commit is contained in:
Pavel Roskin 2002-12-07 00:02:12 +00:00
parent 4925d2cdd5
commit fd44d72c55
2 changed files with 22 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2002-12-06 Pavel Roskin <proski@gnu.org>
* extfs/uar.in: Implement "copyin" and "rm" commands.
2002-12-06 Andrew V. Samoilov <sav@bcs.zp.ua>
* extfs.c: Don't include ../src/profile.h.

View File

@ -8,7 +8,6 @@
#
#
XAR=ar
XUNAR=ar
XARINFO="ar tv"
AWK=awk
@ -32,7 +31,17 @@ mcarfs_list ()
mcarfs_copyout ()
{
$XUNAR p $1 $2 > $3
$XAR p $1 $2 > $3
}
mcarfs_copyin ()
{
$XAR r $1 $2 > $3
}
mcarfs_rm ()
{
$XAR d $1 $2
}
# override any locale for dates
@ -41,8 +50,11 @@ export LC_ALL
umask 077
case "$1" in
list) mcarfs_list $2; exit 0;;
copyout) shift; mcarfs_copyout $*; exit 0;;
copyin) shift; mcarfs_copyin $*; exit 0;;
list) mcarfs_list $2 ;;
copyout) shift; mcarfs_copyout "$@" ;;
copyin) shift; mcarfs_copyin "$@" ;;
rm) shift; mcarfs_rm "$@" ;;
*) exit 1;
esac
exit 1
exit 0