home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 2
/
crawlyvol2.bin
/
utility
/
misc
/
master
/
batch
/
tfa.bat
< prev
next >
Wrap
DOS Batch File
|
1989-04-16
|
870b
|
37 lines
set action $1
set options $2
set source $3
set tfafiles $4
set dest $5
# tfa haette gerne den Unix-Mode angeschaltet
ifglobal UNIX {;} else {
Unix
set nounix
}
# Im erweiterten Unix-Mode ist die Bedeutung von *.* etwas anders
if UNIX in "26" {
set all *
} else {
set all *.*
}
ifempty dest { ;# zu wenig Parameter
rem Usage $0 action options sourcedir files dest
rem Example $0 pack -dt /bin *.ttp a:/dest
} else { ;# jetzt gehts endlich los
$action $options $source/$tfafiles $dest/
files -qd $source/$all
foreach cf in FILES do
if not exist $dest/$cf {
md $dest/$cf -q ;# das ist z.B. bei 'tfa diff ...' unangebracht
}
$@ $action $options $source/$cf $tfafiles $dest/$cf
endfor
}
# Der Benutzer hat eventuell andere Vorstellungen, was den Unix-Mode angeht
iflocal nounix {
nounix
}