requestchoice >nil: "$hippackver" "Hmm jotain meni pieleen...*n*nEsim. tiedostonimissä saattaa olla*nvälilyöntejä tai erikoismerkkejä,*njotka eivät oikein ole hyvä juttu*nmuutenkaan." "No pahus"
else
echo "$hippackver*nHmm jotain meni pieleen...*n*nEsim. tiedostonimissä saattaa olla välilyöntejä tai erikoismerkkejä,*njotka eivät oikein ole hyvä juttu muutenkaan."
endif
skip end
else
list "$h2" lformat "%p" >env:hpckdef
endif
copy >nil: env:hpckdef envarc:
search >nil: env:h2 ($mods) pattern
if not warn
Hip `search env:h2 ($mods) pattern nonum`
waithip
endif
search >nil: env:h2 ($pack) pattern
if not warn
search env:h2 ($pack) pattern nonum >t:h.0
type t:h.0 >t:h.p number
else
set end no
skip end
endif
lab etsi
search >nil: t:h.p " $nro "
if not warn
setenv file `search t:h.p " $nro " quick nonum`
setenv file `echo "$file" first 3`
setenv nro `eval $nro+1`
else
if "$all" eq yes
set allmods yes
skip playpack
endif
set end no
skip end
endif
lab chkpack
setenv packf "$file"
if exists "$Work"
assign >nil: hipwr: "$Work"
else
assign >nil: hipwr: T:
endif
if not exists hipwr:tmpdir{$$}
makedir hipwr:tmpdir{$$}
endif
failat 21
search >nil: env:packf .(lha|lzh) pattern
if not warn
lha -qx2 e "$file" hipwr:tmpdir{$$}/
else
search >nil: env:packf .zip
if not warn
unzip -qoj "$file" -d hipwr:tmpdir{$$}/
else
search >nil: env:packf .lzx
if not warn
lzx -q1x0 e "$file" hipwr:tmpdir{$$}/
else
search >nil: env:packf .arj
if not warn
assign >nil: hippsrc: ""
cd hipwr:tmpdir{$$}/
unarj >nil: e "$file"
cd hippsrc:
assign >nil: hippsrc: remove
else
search >nil: env:packf .rar
if not warn
assign >nil: hippsrc: ""
cd hipwr:tmpdir{$$}/
unrar >nil: e -o+ "$file"
cd hippsrc:
assign >nil: hippsrc: remove
else
set end no
skip end
endif
endif
endif
endif
endif
if "$all" eq yes
skip back etsi
endif
lab playpack
Hip `list hipwr:tmpdir{$$}/($mods) lformat "*"%p%n*""`