home *** CD-ROM | disk | FTP | other *** search
- Resident >NIL: C:RequestFile PURE
- Resident >NIL: C:RequestChoice PURE
-
- ; $VER: LhAMaker v1.0 (11.7.96) Richard Burke
-
- if EXISTS ENV:Files
- delete >NIL: ENV:Files
- endif
-
- if EXISTS ENV:Mr
- delete >NIL: ENV:Mr
- endif
-
- if EXISTS ENV:Drawer
- delete >NIL: ENV:Drawer
- endif
-
- if EXISTS ENV:Drawers1
- delete >NIL: ENV:Drawers1
- endif
-
- if EXISTS ENV:Final
- delete >NIL: ENV:Final
- endif
-
- if EXISTS ENV:Save
- delete >NIL: ENV:Save
- endif
-
- if EXISTS ENV:Lha
- delete >NIL: ENV:lha
- endif
-
- which lha all >ENV:LHa
- if WARN
- Requestchoice "LhAMaker Error Message" "Can't find 'LhA' tool! *nSee docs for details!" "Quit"
- quit
- endif
-
- Requestfile >ENV:Files TITLE "Choose the file(s) to crunch" POSITIVE Crunch MULTISELECT
- if WARN
- delete >NIL: ENV:Files
- skip drw
- endif
-
- lab Drw
- Requestfile >ENV:Drawer TITLE "Choose the drawer to crunch" DRAWERSONLY POSITIVE Crunch
- if WARN
- delete >NIL: ENV:Drawer
- skip ex
- endif
-
- lab MrDrw
- Requestchoice >ENV:Mr "More drawers to crunch?" "Do you want to crunch more drawers?" "Yes" "No"
- if $Mr EQ "0"
- skip ex
- else skip drw1
- endif
-
- lab Drw1
- Requestfile >ENV:Drawers1 TITLE "Choose the drawer to crunch" DRAWERSONLY POSITIVE Crunch
- if WARN
- delete >NIL: ENV:Drawers1
- skip ex
- else join ENV:Drawers1 ENV:Drawer TO ENV:Drawers
- delete >NIL: ENV:Drawers1
- delete >NIL: ENV:Drawer
- rename ENV:Drawers ENV:Drawer QUIET
- skip back MrDrw
- endif
-
- lab Ex
- if EXISTS ENV:Files
- if EXISTS ENV:Drawer
- join ENV:Files ENV:Drawer TO ENV:Final
- skip sav
- endif
- rename ENV:Files ENV:Final QUIET
- skip sav
- endif
-
- if NOT EXISTS ENV:Files
- if EXISTS ENV:Drawer
- rename ENV:Drawer ENV:Final QUIET
- skip sav
- endif
- if NOT EXISTS ENV:Drawer
- quit
- endif
- endif
-
- lab Sav
- Requestfile >ENV:Save TITLE "Save archive as . . ." DRAWER Ram: FILE .lha POSITIVE Save
- if WARN
- quit
- endif
-
- lab end
- $lha -Fr2a a $Save $Final