4 # ARC Virtual filesystem executive
5 # Copyright (C) 2008 Jacques Pelletier
6 # May be distributed under the terms of the GNU Public License
7 # <jpelletier@ieee.org>
12 # Define which archiver you are using with appropriate options
18 # The 'list' command executive
22 $ARC_LIST "$1" | gawk
-v uid
=${UID-0} '
35 # convert AM/PM to 00-23
44 printf "-rw-r--r-- 1 %-8d %-8d %8d %s %2d %4d %02d:%02d %s\n", uid, 0, $2, $7, $6, $8, a[1], a[2], $1
49 # Command: copyout archivename storedfilename extractto
52 $ARC_GET "$1" "$2" 2> /dev
/null
56 # Command: copyin archivename storedfilename sourcefile
60 $ARC_PUT "$1" "$2" 2> /dev
/null
63 # Command: rm archivename storedfilename
66 $ARC_DEL "$1" "$2" 2> /dev
/null
76 list
) mc_arc_fs_list
"$@" ;;
77 copyout
) mc_arc_fs_copyout
"$@" ;;
78 copyin
) mc_arc_fs_copyin
"$@" ;;
79 rm) mc_arc_fs_rm
"$@" ;;