bei@dogface (03/09/91)
While I'm waiting for the LHARC 2.10 documentation to arrive, I've found that the syntax to LH up a directory tree that worked with 1.13C doesn't work. If you've done it, what command line did you use? -- Bob Bob Izenberg "Teenage Mutant Ninja cs.utexas.edu!dogface!bei [ ] Turtle pies! Fresh from 512 346 7019 the sewers to you!" (TV ad)
Jono_Moore@mindlink.UUCP (Jono Moore) (03/09/91)
> too!long!bei writes: > > Msg-ID: <ioaiy1w164w@dogface> > Posted: 8 Mar 91 19:58:41 GMT > > While I'm waiting for the LHARC 2.10 documentation to arrive, I've found that > the syntax to LH up a directory tree that worked with 1.13C doesn't work. If > you've done it, what command line did you use? It took me a bit to get this working as well, not very intuitive the way it is set up now, though for decompression you don't have to specify any switches to get the subdirectories back (thank god...). Anyway, I have the LHA205 docs and got the commands from there. The command for recursively packing up directories is -r2x1. From the docs: /x[0|1] (eXtend) LHA uses eXtended FILE names, namely full-pathnames for FILEs. You are on the root directory. Suppose you want to archive the FILE '\tc\include\sys\stat.h' in an archive 'ARC.lzh'. You type 'LHA a /x1 ARC.lzh \tc\include\sys\stat.h' to store the FILE with full-pathname,'\tc\include\sys\stat.h'. Similarly, you have a 2-lined list with full-pathnames with 'l' command. /r[0|1|2] (Recursive) LHA archives and extracts files recursively from subdirectories. 'Recursively', means LHA searches all FILEs from all subdirectories under the specified directory if there is any. There are three different modes for '/r' switch. /r0: (non-recursive mode, default) LHA collects files specified by path names only. /r1: LHA separates the given pathname into a directory name and FILE name. LHA recursively collects FILEs with the given name from all the directories under the directory specified. < Example 15 > LHA a /r1 source.lzh \source\*.c \source\*.h LHA collects FILEs with extension C and H from directory \source and its subdirectories, probably '\sources\samples\*.c' but not '\source\*.obj'. /r2: LHA recursively collects all the files from all the specified subdirectories. Tree structure of the specified directory is archived as it is. < Example 16 > LHA a /r2x1 a:\*.* NOTE: LH113C has set /x whenever /r is set in e or x commands. LHA differs from LH113C in that /x is not set with /r automati- cally. The following questions are the most frequently asked ones: (1) How do you backup a disk a: ? LHA a /r2x1 ARC.lzh a:\ (2) Then how do you retrieve all the directories and files on b:? LHA x ARC.lzh b:\ -- +------------------------------------------------+--------------------------+ | cthulhu@{arkham.UUCP|arkham.wimsey.bc.ca} | He who has had has been | | {uunet|ubc-cs}!van-bc!cynic!arkham!cthulhu | but he who has not been | | jono_moore@{mindlink.UUCP|cc.sfu.ca|sfu.bitnet}| has been had. | +------------------------------------------------+--------------------------+
Jono_Moore@mindlink.UUCP (Jono Moore) (03/13/91)
> too!long!bei (Bob Izenberg) writes: > > Msg-ID: <106Ny1w164w@dogface> > Posted: 12 Mar 91 00:09:11 GMT > > Once I followed up on Tino Salmi's message (thanks!) and got LHA210E, > this worked fine. It left me pining, not for fjords but for more feedback > that the paths were stored along with the filename. I was looking for > the way 1.13C did it, by showing the subdirectory names as they're stored. I found this pretty odd too... The first time I ran it I didn't think it had worked :-) -- \F +------------------------------------------------+--------------------------+ | cthulhu@{arkham.UUCP|arkham.wimsey.bc.ca} | He who has had has been | | ...!van-bc!cynic!arkham!cthulhu | but he who has not been | | jono_moore@{mindlink.UUCP|cc.sfu.ca|sfu.bitnet}| has been had. | +------------------------------------------------+--------------------------+