3 # Peter Daum <gator@cs.tu-berlin.de> (Jan 1998, mc-4.1.22)
5 # override any locale for dates. But LANG override LC_TIME (at least in glibc)
12 # paths to used programs:
13 ncat
=cat # regular cat
14 zcat
=zcat
# gunzip to stdout
15 bzcat
="bzip2 -dc" # bunzip2 to stdout
16 file=file # "file" command
19 filelist
=FILELIST
# names for "special" files
23 date=`date +"%b %d %H:%M"`
30 echo "$perm $nlink $uid $gid $size $date $filelist"
33 s|^.* \([^ ]*\)$|$perm $nlink $uid $gid $size $date \1|gp
39 if [ "$2" = "$filelist" ]; then # list of all affected files
42 s|^.* \([^ ]*\)$|\1|gp
47 fn
=`echo $2|$sed 's|/|\\\/|g'` # escape '/' in filename
49 $sed -n "/^diff .*$fn/,/^diff /{
73 list
) patchfs_list
$2; exit 0;;
74 copyout
) patchfs_copyout
$2 $3 $4; exit 0;;
75 run
) patchfs_run
; exit 0;;