home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sources / unix / 263 next >
Encoding:
Text File  |  1992-09-08  |  97.3 KB  |  3,084 lines

  1. Newsgroups: comp.sources.unix
  2. Path: sparky!uunet!decwrl!deccrl!news.crl.dec.com!pa.dec.com!vixie
  3. From: klin@iat.uni-paderborn.de (Peter Klingebiel)
  4. Subject: v26i064: utree - screen oriented filesystem utility (V3.03b-um), Part01/08
  5. Message-ID: <1992Sep7.214814.26570@PA.dec.com>
  6. Originator: vixie@cognition.pa.dec.com
  7. Sender: unix-sources-moderator@pa.dec.com
  8. Organization: DEC Palo Alto
  9. Date: Mon, 7 Sep 92 21:48:14 GMT
  10. Approved: vixie@pa.dec.com
  11. Lines: 3071
  12.  
  13. Submitted-By: klin@iat.uni-paderborn.de (Peter Klingebiel)
  14. Posting-Number: Volume 26, Issue 64
  15. Archive-Name: utree/part01
  16.  
  17. [ I edited the Makefile to add "clean" targets and make "install" more
  18.   portable.  I also edited README to explain some packaging changes.
  19.  
  20.   This is a highly portable UNIX version of the popular DOS "xtree"
  21.   program.  It won't make you want to abandon your shell, but for fast
  22.   dired-like functionality without the overhead of GNU Emacs, this is
  23.   the best thing I've seen.                    --vix ]
  24.  
  25. Utree is a screen oriented filesystem utility for navigation thru fileystems
  26. and doing some default and user defined commands on directories and files.
  27.  
  28. For usage and documentation see the manual pages utree and utree.prlist.
  29.  
  30. For copyright notice, warranty and distribution conditions see COPYRIGHT.
  31.  
  32. #! /bin/sh
  33. # This is a shell archive.  Remove anything before this line, then unpack
  34. # it by saving it into a file and typing "sh file".  To overwrite existing
  35. # files, type "sh file -c".  You can also feed this as standard input via
  36. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  37. # will see the following message at the end:
  38. #        "End of archive 1 (of 8)."
  39. # Contents:  BUGS README TODO bin bin/qtree bin/utree.backup
  40. #   bin/utree.mklist bin/xtree doc doc/utree.prlist.1 lib
  41. #   lib/utree.binding lib/utree.startup src src/help.h src/hist.h
  42. #   src/patchlevel.h sup sup/README sup/getopt.c sys sys/Makefile.286
  43. #   sys/Makefile.AIX sys/Makefile.APP sys/Makefile.BSD
  44. #   sys/Makefile.CON sys/Makefile.M16 sys/Makefile.M32
  45. #   sys/Makefile.MIPS sys/Makefile.RCU sys/Makefile.SCO
  46. #   sys/Makefile.SEQ sys/Makefile.SGI sys/Makefile.SUN
  47. #   sys/Makefile.ULT sys/Makefile.V.2 sys/Makefile.V.3
  48. #   sys/Makefile.VAX sys/Makefile.X23 sys/conf.h.BSD sys/conf.h.CON
  49. #   sys/conf.h.SUN sys/conf.h.V.2 sys/conf.h.V.3 sys/conf.h.VAX tst
  50. #   tst/fionread.c tst/sigwinch.c
  51. # Wrapped by vixie@cognition.pa.dec.com on Mon Sep  7 14:39:53 1992
  52. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  53. if test -f 'BUGS' -a "${1}" != "-c" ; then 
  54.   echo shar: Will not clobber existing file \"'BUGS'\"
  55. else
  56. echo shar: Extracting \"'BUGS'\" \(1770 characters\)
  57. sed "s/^X//" >'BUGS' <<'END_OF_FILE'
  58. X
  59. BUGS, bugs, bug fixes and extensions for utree 3.03-um, klin
  60. X
  61. X==============================================================================
  62. X
  63. patchlevel a: utree 3.03a-um, klin, Sun Mar 15 19:08:25 1992
  64. X
  65. X------------------------------------------------------------------------------
  66. X
  67. Bug:    Window resizing has no effect for utree
  68. XFix:    Handling of 8 bit characters changed (keys.h, term.c, bind.c)
  69. X
  70. Bug:    Bad video attributes after clearing to end of line or display
  71. X    on some terminal types
  72. XFix:    Handle ms/msgr attribute (term.c)
  73. X
  74. Bug:    No visible cursor if entering a key to bind.
  75. XFix:    Turned on cursor before getchar() (bind.c)
  76. X
  77. Bug:    If defining a filetype command the definition is regarded if
  78. X    no comment is given.
  79. XFix:    Handle empty comment (vars.c)
  80. X
  81. Bug:    If creating a new directory at bottom of the tree window a
  82. X    following change to this directory is out of tree window.
  83. XFix:    Check in gotree() if cdlist is on tree window (tree.c)
  84. X
  85. Bug:    No graphic characters on AIX 3.2.
  86. XFix:    Used f1 for as and f0 for ae (term.c, utree.prlist.c)
  87. X
  88. X------------------------------------------------------------------------------
  89. X
  90. XExt:    Search in history list by number (!num) or string (!string) (hist.c)
  91. X
  92. X==============================================================================
  93. X
  94. patchlevel b: utree 3.03b-um, klin, Thu Mar 19 10:58:09 1992
  95. X
  96. X------------------------------------------------------------------------------
  97. X
  98. Bug:    Core dump when entering C-u in line editor
  99. XFix:    Catch unhandled key symbols K_UP, K_STR, K_INV in editline() (edit.c)
  100. X
  101. Bug:    Utree hangs if defining a not pre-defined command variable
  102. XFix:    Don't free empty strings (vars.c)
  103. X
  104. X------------------------------------------------------------------------------
  105. END_OF_FILE
  106. if test 1770 -ne `wc -c <'BUGS'`; then
  107.     echo shar: \"'BUGS'\" unpacked with wrong size!
  108. fi
  109. # end of 'BUGS'
  110. fi
  111. if test -f 'README' -a "${1}" != "-c" ; then 
  112.   echo shar: Will not clobber existing file \"'README'\"
  113. else
  114. echo shar: Extracting \"'README'\" \(11659 characters\)
  115. sed "s/^X//" >'README' <<'END_OF_FILE'
  116. X
  117. X           UTREE - screen oriented filesystem utility
  118. X             README, klin, Mon Feb 24 20:02:52 1992
  119. X
  120. X------------------------------------------------------------------------------
  121. X
  122. Utree is a screen oriented filesystem utility for navigation thru fileystems
  123. and doing some default and user defined commands on directories and files.
  124. X
  125. XFor usage and documentation see the manual pages utree and utree.prlist.
  126. X
  127. XFor copyright notice, warranty and distribution conditions see COPYRIGHT.
  128. X
  129. X------------------------------------------------------------------------------
  130. X
  131. Utree is first implemented and tested on a PCS CADMUS 9230 (Motorola MC68010)
  132. running MUNIX V.2/07 (System V.2) and then ported to, compiled and tested on
  133. some others machines running UNIX System V.3, BSD4.2 and BSD4.3 or look alikes.
  134. The release utree 3.03-um is developed on a MIPS RC3230 running RISC/os 4.51.
  135. X
  136. X    + MIPS RC3230, RISC/os 4.51 (System V.3, MIPS R3000)
  137. X    + PCS Cadmus 9600, MUNIX V.3M3.2 (System V.3, MC68020)
  138. X    + PCS Cadmus 9900, MUNIX V.3R3.2 (RISC/os 4.0 like System V.3, MIPS R[23]000)
  139. X    + SUN SPARCstation2, SunOS 4.1.1 (BSD4.3, SPARC)
  140. X    + Silicon Graphics 4D, IRIX V.3.2.2 (System V.3, MIPS R[23]000)
  141. X    + IBM 520, AIX 3.1 (System V.3, RS/6000)
  142. X    + HP Vectra, SCO UNIX/386 V.3.2 (System V.3, i486)
  143. X    + NoName-AT386, SCO XENIX SysV 2.3.2 386 GT (by Rolf Gebhardt)
  144. X    + Sequent Symmetrie, Dynix i386 2.0v2 (BSD 4.2, 10 x i386)
  145. X    + Convex C120, ConvexOS 8.1 (BSD 4.2)
  146. X    + Nixdorf TARGON/35, TOS 3.2-03 (BSD 4.2)
  147. X    + DEC Decstation 5000/200, Ultrix-32 1.3 (Rev. 54) (BSD 4.3, MIPS R3000)
  148. X    + DEC Vaxstation 3100, Ultrix-32 1.3 (Rev. 9) (BSD 4.3, VAX)
  149. X    + Apollo Domain DN4500, DomainIX 9.5 (BSD4.2 and System V)
  150. X    + DEC VAX/750, 4.3 BSD UNIX
  151. X
  152. Other known ports are done to a lot of other boxes and UNIXes.
  153. X
  154. X------------------------------------------------------------------------------
  155. X
  156. X    If you wish to install utree on your system do the following steps:
  157. X
  158. X    1 CHECK if you have all source files. The file MANIFEST contains a
  159. X      list of all distributed files with a short description.
  160. X
  161. X    2 CHECK AND CHANGE Makefile AND src/Makefile FOR YOUR SYSTEM IF NEEDED.
  162. X      The Makefiles should be self explanatory enough for changes you have
  163. X      to do. There are some example Makefiles for different systems contained
  164. X      in the directory sys. For a complete list of defines and some hints
  165. X      see below.
  166. X
  167. X    [ for comp.sources.unix, there is no default Makefile.  you must
  168. X      select one from sys/Makefile.* and either copy or link it to
  169. X      src/Makefile.  the author's Makefile is shipped as sys/Makefile.SCO.
  170. X                                    --vix ]
  171. X
  172. X    3 CHECK AND CHANGE src/conf.h FOR YOUR SYSTEM IF NEEDED.
  173. X      See below for the meaning of some defines in conf.h you may have to
  174. X      change for your system. There are some example configuration files
  175. X      conf.h for different systems contained in the directory sys.
  176. X      If your system doesn't support vsprintf(3) for formatted output to
  177. X      a string with variable number of arguments (most BSD systems don't)
  178. X      and you wish to use this function look at directory sup containing
  179. X      a public domain version of vsprintf(3) and vfprintf(3).
  180. X      Copy vsprintf.c to directory src and change your Makefile for
  181. X      compiling vsprintf and linking vsprintf into utree. For a complete
  182. X      list of defines in conf.h and some hints see below.
  183. X
  184. X    [ for comp.sources.unix, there is no default conf.h.  you must
  185. X      select one from sys/conf.h.* and either copy or link it to
  186. X      src/conf.h.  the author's conf.h is shipped as sys/conf.h.SCO.
  187. X                                    --vix ]
  188. X
  189. X    4 Call 'make all' or 'make' to compile and link utree and utree.prlist.
  190. X
  191. X    5 Call 'bin/utree .' for testing utree.
  192. X
  193. X    6 Check and edit bin/utree.backup if you wish to allow filesystem or
  194. X      directory backups from within utree. Check and edit bin/utree.mklist
  195. X      for creating directory tree lists from without utree (this is normally
  196. X      not needed).
  197. X
  198. X    7 See the example startup file lib/utree.startup and the example
  199. X      key binding file lib/utree.binding for usage of startup files
  200. X      and key binding files.
  201. X
  202. X    8 Call 'make install' to install the utree executables into a public bin
  203. X      directory defined in the Makefile. May be you have to login as root
  204. X      before.
  205. X
  206. X    9 Have fun and enjoy.
  207. X
  208. X------------------------------------------------------------------------------
  209. X
  210. X    Currently distributed Makefiles and configuration files conf.h in sys are
  211. X
  212. X    sys/*.286  - UNIX V/286/386 compatibility mode (MSC under SCO)
  213. X    sys/*.AIX  - AIX 3.1 (IBM 520, RS/6000)
  214. X    sys/*.APP  - DomainIX 9.5 (Apollo Domain DN4500)
  215. X    sys/*.BSD  - Generic BSD4.2 and BSD4.3
  216. X    sys/*.CON  - ConvexOS 8.1 (Convex C120)
  217. X    sys/*.M16  - MUNIX V2/07 (PCS Cadmus 9230, MC68010)
  218. X    sys/*.M32  - MUNIX V3.2 (PCS Cadmus 9600, MC68020)
  219. X    sys/*.MIPS - RISC/os 4.51 (MIPS RC3230, R3000)
  220. X    sys/*.RCU  - MUNIX V3.2 (PCS Cadmus 99xx, MIPS R2000/3000)
  221. X    sys/*.SCO  - SCO UNIX System V/386 3.2 (HP Vectra)
  222. X    sys/*.SEQ  - Dynix i386 (Sequent Symmetrie, 10xi386)
  223. X    sys/*.SGI  - IRIX V.3.2 (Silicon Graphics 4D, MIPS R3000)
  224. X    sys/*.SUN  - SunOS 4.1.1 (SUN4, SPARC)
  225. X    sys/*.ULT  - Ultrix-32 3.1 (DECstation, VAXstation)
  226. X    sys/*.V.2  - Generic System V.2
  227. X    sys/*.V.3  - Generic System V.3
  228. X    sys/*.VAX  - 4.3 BSD UNIX (DEC VAX/750)
  229. X    sys/*.X23  - SCO XENIX SysV 2.3.2 386GT (NoName-AT386)
  230. X
  231. X------------------------------------------------------------------------------
  232. X
  233. X    Utree is written in standard K&R C, not in ANSI C. If you are using an
  234. X    ANSI C compiler check and set the appropiate compiler option for accepting
  235. X    standard C code. The other compile and link options in the Makefile are
  236. X
  237. X    CFLAGS   normal compiler flags and defines (for utree and utree.prlist)
  238. X    MFLAGS   floating point compiler flag (for utree.prlist)
  239. X    LFLAGS   loader flags (for utree and utree.prlist)
  240. X    LIBS     needed libraries (for utree and utree.prlist)
  241. X    MLIBS    floating point library (for utree.prlist)
  242. X    LLIBS    local libraries (i.e. shared libraries)
  243. X    CC       the C compiler command
  244. X    SRCS     list of utree source files
  245. X    OBJS     list of utree object files
  246. X
  247. X    If your system is BSD or BSD-like and doesn't support the getopt(3)
  248. X    commandline parser function, copy getopt.c from directory sup to the
  249. X    source directory sys and add getopt.c and getopt.o to the SRCS and
  250. X    OBJS variables in src/Makefile. See sys/Makefile.BSD for and example.
  251. X    The tree list program utree.prlist also uses getopt().
  252. X
  253. X    Possible defines in the makefile src/Makefile
  254. X
  255. X    define BSD for BSD systems (default: SYSV)
  256. X    define AIX for IBMs UNIX version AIX
  257. X    define XENIX for XENIX system
  258. X    define APOLLO for adding some special stuff for APOLLO networks
  259. X    define VOID=int if your compiler doen't support void
  260. X    define UTLIB=libdir if not defined in conf.h (see below)
  261. X
  262. X------------------------------------------------------------------------------
  263. X
  264. X    Meaning of some defines in the system configuration file conf.h:
  265. X
  266. X    #define HASVPRINTF if your system is BSD or BSD-like and supports
  267. X      the varargs vsprintf(3) function. Some BSD systems need additional
  268. X      libraries at link time for vsprintf(). The directory sup contains
  269. X      a public domain version of vsprintf() which you can compile and
  270. X      link into utree. If you want to use this function copy vsprintf.c
  271. X      from directory sup to src and change the makefile to include
  272. X      vsprintf.c and vsprintf.o in SRCS and OBJS. But you should test
  273. X      vsprintf before because usage vsprintf may not work or result in
  274. X      core dumps! SYSV needs not to define HASVPRINTF.
  275. X
  276. X    #define HASFIONREAD if your system is SYSV and supports the FIONREAD
  277. X      call to ioctl(2) to get the number of characters to read i.e. for
  278. X      typeahead(). Check if ioctl(0, FIONREAD, &n) sets n to the correct
  279. X      number of characters already typed in. My own system (MUNIX V.2/07)
  280. X      i.e. fails, but most SYSV, especially those which support sockets,
  281. X      return the correct result in n. The directory tst contains a simple
  282. X      test program fionread.c for testing the ioctl-call. BSD needs not
  283. X      to define HASFIONREAD.
  284. X
  285. X    #define HASVFORK if your system is SYSV and supports the vfork(2)
  286. X      systemcall. My own system i.e. supports the vfork(2) systemcall.
  287. X      AIX otherwise supports vfork(2) when linking in the BSD compatibility
  288. X      library libbsd.a (-lbsd) but in this case the signal handling
  289. X      is also BSD-like and resizing the screen may not work correctly.
  290. X      BSD needs not to define HASVFORK.
  291. X
  292. X    #define NODIRENT if your system is SYSV or another older system
  293. X      and doesn't support the directory type struct dirent and the
  294. X      directory access functions opendir(3), closedir(3) and readdir(3).
  295. X      Check the include file /usr/sys/dirent.h for struct dirent or
  296. X      the manual pages for the directory access functions. If your
  297. X      system doesn't support struct dirent utree assumes a standard
  298. X      UNIX filesystem with struct direct and filename length of at least
  299. X      14 characters and emulates the directory functions with file
  300. X      access functions. BSD needs not to define NODIRENT.
  301. X
  302. X    #undefine NOWINCHG to permit resizing of the screen at runtime, i.e.
  303. X      after resizing a xterm under X. Your system has to support the
  304. X      signal SIGWINCH after resizing the screen and the ioctl(2) call
  305. X      TIOCGWINSZ to get the new screen size in a record winsize. Not
  306. X      all systems defining SIGWINCH and TIOCGWINSZ fill the winsize
  307. X      record in a correct manner, i.e. SCO UNIX V.3.2/386. Check the
  308. X      include files /usr/signal.h or /usr/sys/signal.h for SIGWINCH
  309. X      and /usr/include/sys/ioctl.h, /usr/include/termio.h or
  310. X      /usr/include/sys/termio.h for TIOCGWINSZ and struct winsize.
  311. X      The directory tst contains a simple test program winsize.c
  312. X      for testing resizing and properly signal and winsize handling.
  313. X
  314. X    #define STRUCTCOPY(from, to) to an appropiate memory copy function
  315. X      if your compiler doesn't support assignments of a struct variables
  316. X      like struct_variable_to = struct_variable_from. On SYSV define as
  317. X      memcpy(to, from, sizeof(from)), on BSD as bcopy(from, to, sizeof(from)).
  318. X      (See conf.h).
  319. X
  320. X    #define UTCLOCK to allow clock display/update every second.
  321. X
  322. X    #define UTLIB as a directory containing utree startup files for
  323. X      global definitions (utree), key bindings (utree-$TERM) and the
  324. X      tree help pages (utree.help). The default name of this global
  325. X      library directory is defined as /usr/local/lib. But this directory
  326. X      may also be set in the environment variable $UTLIB.
  327. X
  328. X      Last but not least check the pre-defined system commands defined
  329. X      in cmds.h and change them to your preferred commands, for example
  330. X      the editor, pager or hexdumper. But all these commands may also be
  331. X      set in the global startup file $UTLIB/utree or in user's startupfile
  332. X      $HOME/.utree.
  333. X
  334. X------------------------------------------------------------------------------
  335. X
  336. If you find bugs (there are some bugs - i'm sure) or make changes to utree
  337. please send me bug reports (and bug fixes) and/or your changes. The file TODO
  338. denotes some extensions to utree which should be done in the next time.
  339. If you have questions about utree feel free to send me your questions.
  340. I hope I have the time to answer to you.
  341. X
  342. My address:     Peter Klingebiel
  343. X               Busdorfwall 18
  344. X               D-4790 Paderborn
  345. Internet:       klin@iat.uni-paderborn.de
  346. X
  347. X------------------------------------------------------------------------------
  348. END_OF_FILE
  349. if test 11659 -ne `wc -c <'README'`; then
  350.     echo shar: \"'README'\" unpacked with wrong size!
  351. fi
  352. # end of 'README'
  353. fi
  354. if test -f 'TODO' -a "${1}" != "-c" ; then 
  355.   echo shar: Will not clobber existing file \"'TODO'\"
  356. else
  357. echo shar: Extracting \"'TODO'\" \(804 characters\)
  358. sed "s/^X//" >'TODO' <<'END_OF_FILE'
  359. X
  360. X           UTREE - screen oriented filesystem utility
  361. X              TODO, klin, Mon Feb 24 20:05:49 1992
  362. X
  363. X->      The system configuration file conf.h and the Makefiles could be
  364. X       configured automatically!
  365. X
  366. X->      Instead of really removing files use save-remove with possibility
  367. X       to restore so save-removed files, i.e.
  368. X               'mv filename .#filename' (instead of 'rm filename')
  369. X               'rm .#filename' before exiting utree
  370. X
  371. X->      Extend file patterns, i.e. file mode ...
  372. X
  373. X->      More sophisticated removing of subtrees
  374. X
  375. X->      More sophisticated menu handling
  376. X
  377. X->      Use colors instead of video attributes on color terminals
  378. X
  379. X->      Use of the curses library for screen dependent functions
  380. X       instead of own coded functions (???)
  381. X
  382. X->      Port to X11/Motif (???)
  383. X
  384. END_OF_FILE
  385. if test 804 -ne `wc -c <'TODO'`; then
  386.     echo shar: \"'TODO'\" unpacked with wrong size!
  387. fi
  388. # end of 'TODO'
  389. fi
  390. if test ! -d 'bin' ; then
  391.     echo shar: Creating directory \"'bin'\"
  392.     mkdir 'bin'
  393. fi
  394. if test -f 'bin/qtree' -a "${1}" != "-c" ; then 
  395.   echo shar: Will not clobber existing file \"'bin/qtree'\"
  396. else
  397. echo shar: Extracting \"'bin/qtree'\" \(345 characters\)
  398. sed "s/^X//" >'bin/qtree' <<'END_OF_FILE'
  399. X:
  400. X#
  401. X#       QTREE.SH
  402. X#       Quick startup utree
  403. X#       3.03-um klin, Sun Feb 16 16:07:25 1992
  404. X#       Usage:          like utree
  405. X#       Options:        like utree
  406. X#       Directory:      /usr/local/bin
  407. X#
  408. X#       SCCSID = @(#) utree 3.03-um (klin) Feb 16 1992 bin/qtree.sh
  409. X#       USAGE  = @(#) Usage: qtree [utree_options]
  410. X
  411. exec utree -q $@
  412. X
  413. END_OF_FILE
  414. if test 345 -ne `wc -c <'bin/qtree'`; then
  415.     echo shar: \"'bin/qtree'\" unpacked with wrong size!
  416. fi
  417. chmod +x 'bin/qtree'
  418. # end of 'bin/qtree'
  419. fi
  420. if test -f 'bin/utree.backup' -a "${1}" != "-c" ; then 
  421.   echo shar: Will not clobber existing file \"'bin/utree.backup'\"
  422. else
  423. echo shar: Extracting \"'bin/utree.backup'\" \(1321 characters\)
  424. sed "s/^X//" >'bin/utree.backup' <<'END_OF_FILE'
  425. X:
  426. X#
  427. X#       UTREE.BACKUP.SH
  428. X#       UTREE backup directories and/or filesystems
  429. X#       3.03-um klin, Sun Feb 16 16:07:46 1992
  430. X#       Usage:          utree.backup backup_listfile
  431. X#       Directory:      /usr/local/bin
  432. X#       Version:        CADMUS MUNIX V.xx and RISC/os 4.xx
  433. X#
  434. X#       Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  435. X#       For copying and distribution information see the file COPYRIGHT.
  436. X#
  437. X#       SCCSID = @(#) utree 3.03-um (klin) Feb 16 1992 bin/utree.backup.sh
  438. X#       USAGE  = @(#) Usage: utree.backup backup_listfile
  439. X
  440. if    test -w /dev/ris0         # Backup device on MUNIX V.3
  441. then
  442. X  DEVICE=/dev/ris0
  443. X  OPTION=DS
  444. X  isctrl -i
  445. X  isctrl -N
  446. elif test -w /dev/rst1          # Backup device on SunOs 4.x.x
  447. then
  448. X  DEVICE=/dev/rst1
  449. X  OPTION=
  450. elif test -w /dev/rst0          # Backup device on MUNIX V.2
  451. then
  452. X  DEVICE=/dev/rst0
  453. X  OPTION=DS
  454. elif test -w /dev/rmt/ctape0    # Backup device on RISC/os 4.xx
  455. then
  456. X  DEVICE=/dev/rmt/ctape0
  457. X  OPTION=
  458. else
  459. X  echo "utree.backup: No tape device found"
  460. X  exit 1
  461. fi
  462. X
  463. if test $# -eq 1
  464. then
  465. X  LIST=$1
  466. else
  467. X  echo "Usage: utree.backup backup_listfile"
  468. X  exit 1
  469. fi
  470. X
  471. echo
  472. echo "UTREE.BACKUP from file $LIST to $DEVICE"
  473. echo
  474. X<$DEVICE                        # Rewind
  475. if [ $? -ne 0 ]
  476. then
  477. X  exit 1
  478. fi
  479. cpio -ov$OPTION >$DEVICE <$LIST # Backup
  480. exit $?
  481. X
  482. END_OF_FILE
  483. if test 1321 -ne `wc -c <'bin/utree.backup'`; then
  484.     echo shar: \"'bin/utree.backup'\" unpacked with wrong size!
  485. fi
  486. chmod +x 'bin/utree.backup'
  487. # end of 'bin/utree.backup'
  488. fi
  489. if test -f 'bin/utree.mklist' -a "${1}" != "-c" ; then 
  490.   echo shar: Will not clobber existing file \"'bin/utree.mklist'\"
  491. else
  492. echo shar: Extracting \"'bin/utree.mklist'\" \(1176 characters\)
  493. sed "s/^X//" >'bin/utree.mklist' <<'END_OF_FILE'
  494. X:
  495. X#
  496. X#       UTREE.MKLIST.SH
  497. X#       UTREE create tree directory list for quicker startup
  498. X#       3.03-um klin, Sun Feb 16 16:08:03 1992
  499. X#       Usage:          utree.mklist [-a] [root_directory list_file]
  500. X#       Options:        -a      Read in all (including hidden) directories
  501. X#       Directory:      /usr/local/bin
  502. X#
  503. X#       Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  504. X#       For copying and distribution information see the file COPYRIGHT.
  505. X#
  506. X#       SCCSID = @(#) utree 3.03-um (klin) Feb 16 1992 bin/utree.mklist.sh
  507. X#       USAGE  = @(#) Usage: utree.mklist [-a] [root_directory list_file]
  508. X
  509. if test $# -ne 0 -a "$1" = "-a" # Option given ?
  510. then
  511. X  AFLAG=-a
  512. X  shift
  513. else
  514. X  AFLAG=
  515. fi
  516. X
  517. if   test $# -eq 2              # Rootdirectory given ?
  518. then
  519. X  ROOT=$1
  520. X  LIST=$2
  521. elif test $# -eq 0              # Rootdirectory is homedirectory
  522. then
  523. X  ROOT=$HOME
  524. X  LIST=$HOME/.utreelist
  525. else
  526. X  echo "Usage: utree.mklist [-a] [root_directory list_file]"
  527. X  exit 1
  528. fi
  529. X
  530. echo "# UTREE tree list created at `date`" >$LIST
  531. if test "$AFLAG" = "-a"
  532. then
  533. X  find $ROOT -type d -print | sort >>$LIST
  534. else
  535. X  find $ROOT -type d -print | grep -v "/\." | sort >>$LIST
  536. fi
  537. exit 0
  538. X
  539. END_OF_FILE
  540. if test 1176 -ne `wc -c <'bin/utree.mklist'`; then
  541.     echo shar: \"'bin/utree.mklist'\" unpacked with wrong size!
  542. fi
  543. chmod +x 'bin/utree.mklist'
  544. # end of 'bin/utree.mklist'
  545. fi
  546. if test -f 'bin/xtree' -a "${1}" != "-c" ; then 
  547.   echo shar: Will not clobber existing file \"'bin/xtree'\"
  548. else
  549. echo shar: Extracting \"'bin/xtree'\" \(486 characters\)
  550. sed "s/^X//" >'bin/xtree' <<'END_OF_FILE'
  551. X:
  552. X#
  553. X#       XTREE.SH
  554. X#       Start utree on x terminal if possible
  555. X#       3.03-um klin, Sun Feb 16 16:08:16 1992
  556. X#       Usage:          like utree
  557. X#       Options:        like utree
  558. X#       Directory:      /usr/local/bin
  559. X#
  560. X#       SCCSID = @(#) utree 3.03-um (klin) Feb 16 1992 bin/xtree.sh
  561. X#       USAGE  = @(#) Usage: xtree [utree_options]
  562. X
  563. if test ! -z "$DISPLAY" -a -x /usr/bin/X11/xterm
  564. then exec /usr/bin/X11/xterm -g 80x24 -bw 2 -n "utree" -e utree $@ &
  565. else exec utree $@
  566. fi
  567. X
  568. END_OF_FILE
  569. if test 486 -ne `wc -c <'bin/xtree'`; then
  570.     echo shar: \"'bin/xtree'\" unpacked with wrong size!
  571. fi
  572. chmod +x 'bin/xtree'
  573. # end of 'bin/xtree'
  574. fi
  575. if test ! -d 'doc' ; then
  576.     echo shar: Creating directory \"'doc'\"
  577.     mkdir 'doc'
  578. fi
  579. if test -f 'doc/utree.prlist.1' -a "${1}" != "-c" ; then 
  580.   echo shar: Will not clobber existing file \"'doc/utree.prlist.1'\"
  581. else
  582. echo shar: Extracting \"'doc/utree.prlist.1'\" \(2308 characters\)
  583. sed "s/^X//" >'doc/utree.prlist.1' <<'END_OF_FILE'
  584. X'''\"
  585. X'''\"   utree.prlist.man
  586. X'''\"   klin, Fri Mar  6 11:21:41 1992
  587. X'''\"
  588. X'''\"   [x]roff -man utree.prlist.man
  589. X'''\"   groff   -man [-Tdevice] utree.prlist.man
  590. X'''\"
  591. X'''\"   SCCSID = @(#) utree.prlist..man 3.03-um Mar  6 1992
  592. X'''\"
  593. X.TH UTREE.PRLIST 1L "UTREE Version 3.03-um" "March 6 1992"
  594. X.SH NAME
  595. X.LP
  596. X\fButree.prlist\fR \- Filter \fButree\fR tree list files
  597. X.SH SYNOPSIS
  598. X.LP
  599. utree.prlist [options] listfile
  600. X.SH DESCRIPTION
  601. X.LP
  602. X\fButree.prlist\fR reads a
  603. formatted directory tree list file \fBlistfile\fR
  604. previously created from within \fButree\fR
  605. on the \fItree screen\fR with
  606. the out-command (\fBo\fR) and the list-option (\fBl\fR).
  607. The tree list can be converted to various output formats
  608. for different output devices and printers (see below).
  609. The converted tree list is written to stdout.
  610. X.SH OPTIONS
  611. X.LP
  612. The following command line options are interpreted by \fButree.prlist\fR:
  613. X.sp
  614. X.TP 16
  615. X\fB-T dev\fR
  616. Create output for device \fBdev\fR.
  617. Currently supported devices see below.
  618. X.TP
  619. X\fB-V\fR
  620. Display program version and exit.
  621. X.TP
  622. X\fB-d dev\fR
  623. Create output for device \fBdev\fR.
  624. Currently supported devices see below.
  625. X.TP
  626. X\fB-f fnt\fR
  627. Use font \fBfnt\fR.
  628. This option is meaningful only for postscript (default: Courier-Bold).
  629. X.TP
  630. X\fB-h\fR
  631. Display some help about usage and options.
  632. X.TP
  633. X\fB-i ind\fR
  634. Set tree indention to \fBind\fR columns (3 .. 9, default: 6).
  635. X.TP
  636. X\fB-s siz\fR
  637. Use font size \fBsiz\fR.
  638. This option is meaningful only for postscript (default: 10).
  639. X.SH OUTPUT FORMATS
  640. X.LP
  641. Currently supported output formats or devices are:
  642. X.sp
  643. X.TP 16
  644. X\fBascii\fR
  645. ASCII using graphical meta characters (-|+).
  646. X.TP
  647. X\fB850\fR
  648. Printers supporting the IBM international character set PC850.
  649. X.TP
  650. X\fBps\fR
  651. ADOBE POSTSCRIPT printers or previewers.
  652. X.TP
  653. X\fBterm\fR
  654. Terminals using graphical characters if defined (default).
  655. X.PP
  656. X.SH SEE ALSO
  657. X.LP
  658. utree(1L)
  659. X.SH AUTHOR
  660. X.LP
  661. Peter Klingebiel
  662. X.SH COPYRIGHT
  663. X.LP
  664. X\(co 1991/92 Peter Klingebiel & UNIX Magazin Munich
  665. X.sp
  666. Permission is granted to copy and distribute \fButree\fR in modified
  667. or unmodified form, for noncommercial use, provided (a) this copyright
  668. notice is preserved, (b) no attempt is made to restrict redistribution
  669. of this file, and (c) this file is not distributed as part of any
  670. collection whose redistribution is restricted by a compilation copyright.
  671. X
  672. END_OF_FILE
  673. if test 2308 -ne `wc -c <'doc/utree.prlist.1'`; then
  674.     echo shar: \"'doc/utree.prlist.1'\" unpacked with wrong size!
  675. fi
  676. # end of 'doc/utree.prlist.1'
  677. fi
  678. if test ! -d 'lib' ; then
  679.     echo shar: Creating directory \"'lib'\"
  680.     mkdir 'lib'
  681. fi
  682. if test -f 'lib/utree.binding' -a "${1}" != "-c" ; then 
  683.   echo shar: Will not clobber existing file \"'lib/utree.binding'\"
  684. else
  685. echo shar: Extracting \"'lib/utree.binding'\" \(1063 characters\)
  686. sed "s/^X//" >'lib/utree.binding' <<'END_OF_FILE'
  687. X#
  688. X#       $HOME/.utree-$TERM or $UTLIB/utree-$TERM
  689. X#       Example keybinding file for terminal type $TERM=xterm
  690. X#       klin, Sun Feb 23 23:31:11 1992
  691. X#       Directory:      user's home directory  ($HOME)
  692. X#                       or a library directory ($UTLIB)
  693. X#
  694. X#       SCCSID = @(#) utree 3.03-um (klin) Feb 23 1992 lib/utree.binding
  695. X#
  696. X
  697. X# Key bindings: key_sequence=utree_key_name     #Keyname
  698. X#               key_sequence="string_to_insert" #Keyname
  699. X
  700. X# Example bindings for keypad keys (xterm)
  701. X\eOp=DOWN                               #Keypad-0
  702. X\eOn=INSERT                             #Keypad-.
  703. X\eOo=PREVPAGE                           #Keypad-/
  704. X\eOx=NEXTPAGE                           #Keypad-8
  705. X\eOj=UP                                 #Keypad-*
  706. X\eOy=DOWN                               #Keypad-9
  707. X
  708. X# Example bindings for functions keys (xterm)
  709. X\e[21~=EXIT                             #FunctionKey 10
  710. X
  711. X# Example bindings for inserting strings (xterm)
  712. X\e[11~="/y"                             #FunctionKey 1
  713. X\e[12~="!ps -ef|more\n"                 #FunctionKey 2
  714. X
  715. END_OF_FILE
  716. if test 1063 -ne `wc -c <'lib/utree.binding'`; then
  717.     echo shar: \"'lib/utree.binding'\" unpacked with wrong size!
  718. fi
  719. # end of 'lib/utree.binding'
  720. fi
  721. if test -f 'lib/utree.startup' -a "${1}" != "-c" ; then 
  722.   echo shar: Will not clobber existing file \"'lib/utree.startup'\"
  723. else
  724. echo shar: Extracting \"'lib/utree.startup'\" \(1994 characters\)
  725. sed "s/^X//" >'lib/utree.startup' <<'END_OF_FILE'
  726. X#
  727. X#       $HOME/.utree or $UTLIB/utree
  728. X#       Example startup file for UTREE 3.03-um
  729. X#       klin, Sun Feb 16 16:12:30 1992
  730. X#       Directory:      user's home directory  ($HOME)
  731. X#                       or a library directory ($UTLIB)
  732. X#
  733. X#       SCCSID = @(#) utree 3.03-um (klin) Feb 16 1992 lib/utree.startup
  734. X
  735. X# General variables: variable=value
  736. HISTSIZE=16                             #Size of history list
  737. SHELL=ksh
  738. XED=mg
  739. XEO=-s
  740. PG=less
  741. PO=-e
  742. X# User defined tree commands: variable=value #Menuitem
  743. TREECMD1=whodo                          #Whodo
  744. T2=ps -ef                               #Procs
  745. T3=df -t                                #Space
  746. T4=rwho                                 #Rwho
  747. T5=ruptime                              #Ruptime
  748. X# User defined file commands: variable=value #Menuitem
  749. XFILECMD1=whodo                          #Whodo
  750. XF2=ps -ef                               #Procs
  751. XF3=df -t                                #Space
  752. XF4=rwho                                 #Rwho
  753. XF5=ruptime                              #Ruptime
  754. XF6=wc -l %F                             #Lines
  755. XF7=make %F                              #Make
  756. X# Filetype dependent commands: filetype:commandline #Comment
  757. X*.c:cc -c -O %F                         #Compile C
  758. X*.f:f77 -c %F                           #Compile fortran
  759. X*.p:pc -c -O %F                         #Compile pascal
  760. X*.sc:sc %F                              #Spreadsheet calculator
  761. X*.mk:make -f %F %s                      #Call make for file.mk
  762. X[Mm]akefile:make %s                     #Call make for Makefile or makefile
  763. X*.[1-9]:nroff -man %F|pg -cen           #View manual page
  764. X*.z:pcat %F|pg -cen                     #View packed files
  765. X*.Z:zcat %F|pg -cen                     #View compressed file
  766. X*.a:ar tv %F|pg -cen                    #Table of ar archive
  767. X*.tar:tar tvf %F|pg -cen                #Table of tar archive
  768. X*.tar.Z:zcat %F|tar -tvf -|pg -cen      #Table of compressed tar archive
  769. X*.[1-9].Z:zcat %F|nroff -man|pg -cen    #View compressed manual page
  770. X
  771. END_OF_FILE
  772. if test 1994 -ne `wc -c <'lib/utree.startup'`; then
  773.     echo shar: \"'lib/utree.startup'\" unpacked with wrong size!
  774. fi
  775. # end of 'lib/utree.startup'
  776. fi
  777. if test ! -d 'src' ; then
  778.     echo shar: Creating directory \"'src'\"
  779.     mkdir 'src'
  780. fi
  781. if test -f 'src/help.h' -a "${1}" != "-c" ; then 
  782.   echo shar: Will not clobber existing file \"'src/help.h'\"
  783. else
  784. echo shar: Extracting \"'src/help.h'\" \(1985 characters\)
  785. sed "s/^X//" >'src/help.h' <<'END_OF_FILE'
  786. X/*
  787. X *      HELP.H
  788. X *      UTREE help definitions.
  789. X *      3.01-um klin, Sat Apr 20 11:02:33 1991
  790. X *      3.03-um klin, Sat Feb 15 18:33:14 1992, Minor changes
  791. X *
  792. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  793. X *      For copying and distribution information see the file COPYRIGHT.
  794. X */
  795. X#if     defined(_MAIN_) && !defined(lint)
  796. static char sccsid_help[] = "@(#) utree 3.03-um (klin) Feb 15 1992 help.h";
  797. X#endif  /* _MAIN_ && !lint */
  798. X
  799. X/* Max length of a menu item in the help menuline                       */
  800. X#define ITEMLEN 16
  801. X
  802. X/*
  803. X *      Utree help pages are hold in a dynamically linked list of the
  804. X *      following data structure _hlist which is built up at runtime.
  805. X *      The record contains information about help items from a help
  806. X *      file, i.e. a menu title or item, the starting position of a help
  807. X *      page about this item in the help file and the number of lines
  808. X *      of this help page. Displaying a help page about an item is
  809. X *      therefore searching this item in the help page list, positioning
  810. X *      to the starting position in the help file and putting as many
  811. X *      lines from the helpfile to screen as this help page has.
  812. X */
  813. X
  814. typedef struct _hlist {
  815. X  char item[ITEMLEN];           /* Menu line item                       */
  816. X  char hotkey;                  /* Menu hot key                         */
  817. X  int nlines;                   /* Number of lines in help file         */
  818. X  long position;                /* Start position in help file          */
  819. X  struct _hlist *next;          /* Pointer to next help page            */
  820. X} hlist;
  821. X
  822. X#define HNULL   ((hlist *) 0)   /* The hlist NIL pointer                */
  823. X
  824. X/*
  825. X *      Access to items of hlist record is done with macros
  826. X *      to hide this record and for abbreviation.
  827. X */
  828. X
  829. X#define HITEM(p)        ((p)->item)
  830. X#define HHKEY(p)        ((p)->hotkey)
  831. X#define HNLIN(p)        ((p)->nlines)
  832. X#define HSPOS(p)        ((p)->position)
  833. X#define HNEXT(p)        ((p)->next)
  834. X
  835. END_OF_FILE
  836. if test 1985 -ne `wc -c <'src/help.h'`; then
  837.     echo shar: \"'src/help.h'\" unpacked with wrong size!
  838. fi
  839. # end of 'src/help.h'
  840. fi
  841. if test -f 'src/hist.h' -a "${1}" != "-c" ; then 
  842.   echo shar: Will not clobber existing file \"'src/hist.h'\"
  843. else
  844. echo shar: Extracting \"'src/hist.h'\" \(1352 characters\)
  845. sed "s/^X//" >'src/hist.h' <<'END_OF_FILE'
  846. X/*
  847. X *      HIST.H
  848. X *      UTREE history list definitions.
  849. X *      3.03-um klin, Tue Feb 11 22:35:29 1992, Shell command history added
  850. X *
  851. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  852. X *      For copying and distribution information see the file COPYRIGHT.
  853. X */
  854. X#if     defined(_MAIN_) && !defined(lint)
  855. static char sccsid_hist[] = "@(#) utree 3.03-um (klin) Feb 11 1992 hist.h";
  856. X#endif  /* _MAIN_ && !lint */
  857. X
  858. X/*
  859. X *      Shell commands are hold in a dynamically lined list of
  860. X *      struct _clist.
  861. X */
  862. X
  863. typedef struct _clist {
  864. X  glist list;                   /* Containing command and pointers      */
  865. X  int length;                   /* Length of current command            */
  866. X  int number;                   /* Event number                         */
  867. X  int counter;                  /* Event counter                        */
  868. X} clist;
  869. X
  870. X#define CHNULL  ((clist *) 0)   /* The clist NIL pointer                */
  871. X
  872. X/*
  873. X *      Access to entries in the command history list is done
  874. X *      with macros to hide this record and for abbreviation.
  875. X */
  876. X
  877. X#define CHLST(p)        (&(p)->list)
  878. X#define CHCMD(p)        ((p)->list.string)
  879. X#define CHPRV(p)        ((p)->list.prev)
  880. X#define CHNXT(p)        ((p)->list.next)
  881. X#define CHLEN(p)        ((p)->length)
  882. X#define CHNUM(p)        ((p)->number)
  883. X#define CHCNT(p)        ((p)->counter)
  884. X
  885. END_OF_FILE
  886. if test 1352 -ne `wc -c <'src/hist.h'`; then
  887.     echo shar: \"'src/hist.h'\" unpacked with wrong size!
  888. fi
  889. # end of 'src/hist.h'
  890. fi
  891. if test -f 'src/patchlevel.h' -a "${1}" != "-c" ; then 
  892.   echo shar: Will not clobber existing file \"'src/patchlevel.h'\"
  893. else
  894. echo shar: Extracting \"'src/patchlevel.h'\" \(30 characters\)
  895. sed "s/^X//" >'src/patchlevel.h' <<'END_OF_FILE'
  896. X#define PATCHLEVEL "3.03b-um"
  897. END_OF_FILE
  898. if test 30 -ne `wc -c <'src/patchlevel.h'`; then
  899.     echo shar: \"'src/patchlevel.h'\" unpacked with wrong size!
  900. fi
  901. # end of 'src/patchlevel.h'
  902. fi
  903. if test ! -d 'sup' ; then
  904.     echo shar: Creating directory \"'sup'\"
  905.     mkdir 'sup'
  906. fi
  907. if test -f 'sup/README' -a "${1}" != "-c" ; then 
  908.   echo shar: Will not clobber existing file \"'sup/README'\"
  909. else
  910. echo shar: Extracting \"'sup/README'\" \(1785 characters\)
  911. sed "s/^X//" >'sup/README' <<'END_OF_FILE'
  912. Portable vsprintf, vfprintf, and vprintf  by Robert A. Larson
  913. X       <blarson@skat.usc.edu>
  914. X
  915. Copyright 1989 Robert A. Larson.
  916. Distribution in any form is allowed as long as the author
  917. retains credit, changes are noted by their author and the
  918. copyright message remains intact.  This program comes as-is
  919. with no warentee of fitness for any purpouse.
  920. X
  921. Thanks to Doug Gwen, Chris Torek, and others who helped clarify
  922. the ansi printf specs.
  923. X
  924. Please send any bug fixes and improvments to blarson@skat.usc.edu .
  925. The use of goto is NOT a bug.
  926. X
  927. X
  928. XFeb  9, 1989           blarson         First usenet release
  929. X
  930. This code implements the vsprintf function, without relying on
  931. the existance of _doprint or other system specific code.
  932. X
  933. Define NOVOID if void * is not a supported type.
  934. X
  935. Two compile options are available for efficency:
  936. X       INTSPRINTF      should be defined if sprintf is int and returns
  937. X                       the number of chacters formated.
  938. X       LONGINT         should be defined if sizeof(long) == sizeof(int)
  939. X
  940. X       They only make the code smaller and faster, they need not be
  941. X       defined.
  942. X
  943. UNSIGNEDSPECIAL should be defined if unsigned is treated differently
  944. than int in argument passing.  If this is definded, and LONGINT is not,
  945. the compiler must support the type unsigned long.
  946. X
  947. Most quirks and bugs of the available sprintf and fprintf fuction are
  948. duplicated, however * in the width and precision fields will work
  949. correctly even if sprintf does not support this, and the %n format
  950. will always work in vsprintf.  %n and return count will work properly
  951. in vfprintf and vprintf only if fprintf returns the number of
  952. characters formatted.
  953. X
  954. Bad format strings, or those with very long width and precision
  955. fields (including expanded * fields) will cause undesired results.
  956. X
  957. END_OF_FILE
  958. if test 1785 -ne `wc -c <'sup/README'`; then
  959.     echo shar: \"'sup/README'\" unpacked with wrong size!
  960. fi
  961. # end of 'sup/README'
  962. fi
  963. if test -f 'sup/getopt.c' -a "${1}" != "-c" ; then 
  964.   echo shar: Will not clobber existing file \"'sup/getopt.c'\"
  965. else
  966. echo shar: Extracting \"'sup/getopt.c'\" \(1974 characters\)
  967. sed "s/^X//" >'sup/getopt.c' <<'END_OF_FILE'
  968. X/*
  969. X *      GETOPT.C
  970. X *      System V like command line option parser
  971. X */
  972. X
  973. X/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
  974. X/* !  This function is a modified version of getopt() `stolen' from   ! */
  975. X/* !  the public domain electronic mail system ELM version 2.3        ! */
  976. X/* !    (C) Copyright 1986, 1987, by Dave Taylor                      ! */
  977. X/* !    (C) Copyright 1988, 1989, 1990, USENET Community Trust        ! */
  978. X/* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */
  979. X
  980. X#include <stdio.h>
  981. X
  982. X#ifdef  SYSV
  983. X#define index(s, c)  strchr(s, c)
  984. extern char *strchr();
  985. X#else
  986. extern char *index();
  987. X#endif
  988. X
  989. int  opterr = 1;                /* Error handling flag  */
  990. int  optind = 1;                /* Index in argv        */
  991. int  optopt;                    /* Current option       */
  992. char *optarg;                   /* Option argument      */
  993. X
  994. getopt(argc, argv, opts)
  995. X  register int argc;
  996. X  register char **argv, *opts;
  997. X{
  998. X  static int sp = 1;
  999. X  register char *cp;
  1000. X  register int c;
  1001. X
  1002. X  if(sp == 1)
  1003. X    if(optind >= argc || argv[optind][0] != '-' || argv[optind][1] == '\0')
  1004. X      return(EOF);
  1005. X    else if( !strcmp(argv[optind], "--")) {
  1006. X      optind++;
  1007. X      return(EOF);
  1008. X    }
  1009. X  optopt = c = argv[optind][sp];
  1010. X  if(c == ':' || (cp = index(opts, c)) == NULL) {
  1011. X    if(opterr)
  1012. X      (void) fprintf(stderr, "%s: illegal option -- %c\n", argv[0], c);
  1013. X    else if(argv[optind][++sp] == '\0') {
  1014. X      optind++;
  1015. X      sp = 1;
  1016. X    }
  1017. X    return('?');
  1018. X  }
  1019. X  if(*++cp == ':') {
  1020. X    if(argv[optind][sp+1] != '\0')
  1021. X      optarg = &argv[optind++][sp+1];
  1022. X    else if(++optind >= argc) {
  1023. X      if(opterr)
  1024. X       (void) fprintf(stderr, "%s: option requires an argument -- %c\n",
  1025. X                      argv[0], c);
  1026. X      sp = 1;
  1027. X      return('?');
  1028. X    }
  1029. X    else
  1030. X      optarg = argv[optind++];
  1031. X    sp = 1;
  1032. X  }
  1033. X  else {
  1034. X    if(argv[optind][++sp] == '\0') {
  1035. X      sp = 1;
  1036. X      optind++;
  1037. X    }
  1038. X    optarg = NULL;
  1039. X  }
  1040. X  return(c);
  1041. X
  1042. X} /* getopt() */
  1043. X
  1044. END_OF_FILE
  1045. if test 1974 -ne `wc -c <'sup/getopt.c'`; then
  1046.     echo shar: \"'sup/getopt.c'\" unpacked with wrong size!
  1047. fi
  1048. # end of 'sup/getopt.c'
  1049. fi
  1050. if test ! -d 'sys' ; then
  1051.     echo shar: Creating directory \"'sys'\"
  1052.     mkdir 'sys'
  1053. fi
  1054. if test -f 'sys/Makefile.286' -a "${1}" != "-c" ; then 
  1055.   echo shar: Will not clobber existing file \"'sys/Makefile.286'\"
  1056. else
  1057. echo shar: Extracting \"'sys/Makefile.286'\" \(1758 characters\)
  1058. sed "s/^X//" >'sys/Makefile.286' <<'END_OF_FILE'
  1059. X#
  1060. X#       Makefile for UTREE
  1061. X#       klin, Mon Feb 24 00:02:38 1992
  1062. X#
  1063. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1064. X#
  1065. X#       Version: UNIX V/286 compatible (for MSC on SCO UNIX/386)
  1066. X
  1067. X# Compiler flags, loader flags and libraries
  1068. CFLAGS= -compat -O -M2l
  1069. MFLAGS=
  1070. LFLAGS=
  1071. LIBS=   -ltermcap
  1072. MLIBS=
  1073. X# Additional local libraries
  1074. LLIBS=
  1075. X
  1076. X# --------------------------------------------------------------------- #
  1077. X
  1078. X# Some needed commands to create utree
  1079. CC=     cc
  1080. CP=     cp
  1081. STRIP=  strip
  1082. X
  1083. X# --------------------------------------------------------------------- #
  1084. X
  1085. X# Utree executables
  1086. UTREE=  ../bin/utree
  1087. UTPRL=  ../bin/utree.prlist
  1088. X
  1089. X# --------------------------------------------------------------------- #
  1090. X
  1091. X# Utree header files
  1092. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1093. X
  1094. X# Utree sources and objects
  1095. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1096. X    stat.c term.c tree.c util.c vars.c vers.c
  1097. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1098. X    stat.o term.o tree.o util.o vars.o vers.o
  1099. X
  1100. X# --------------------------------------------------------------------- #
  1101. X
  1102. all:    utree utree.prlist
  1103. X
  1104. utree:  $(UTREE)
  1105. X
  1106. strip:  $(UTREE)
  1107. X    $(CP) $(UTREE) $(UTREE)+sym
  1108. X    $(STRIP) $(UTREE)
  1109. X
  1110. utree.prlist:   $(UTPRL)
  1111. X
  1112. X# Compile and link utree
  1113. X$(UTREE):       $(OBJS)
  1114. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1115. X
  1116. X# Compile and link utree.prlist
  1117. X$(UTPRL):       utree.prlist.c
  1118. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1119. X
  1120. X# Clean up
  1121. clean:
  1122. X    rm -f core *.o
  1123. X
  1124. X# --------------------------------------------------------------------- #
  1125. X
  1126. X$(OBJS):        $(DEFS)
  1127. X    $(CC) $(CFLAGS) -c $<
  1128. X
  1129. X# --------------------------------------------------------------------- #
  1130. X
  1131. END_OF_FILE
  1132. if test 1758 -ne `wc -c <'sys/Makefile.286'`; then
  1133.     echo shar: \"'sys/Makefile.286'\" unpacked with wrong size!
  1134. fi
  1135. # end of 'sys/Makefile.286'
  1136. fi
  1137. if test -f 'sys/Makefile.AIX' -a "${1}" != "-c" ; then 
  1138.   echo shar: Will not clobber existing file \"'sys/Makefile.AIX'\"
  1139. else
  1140. echo shar: Extracting \"'sys/Makefile.AIX'\" \(1742 characters\)
  1141. sed "s/^X//" >'sys/Makefile.AIX' <<'END_OF_FILE'
  1142. X#
  1143. X#       Makefile for UTREE
  1144. X#       klin, Mon Feb 24 00:02:38 1992
  1145. X#
  1146. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1147. X#
  1148. X#       Version: IBM 520 (RS/6000),  AIX 3.1
  1149. X
  1150. X# Compiler flags, loader flags and libraries
  1151. CFLAGS= -DAIX -D_NO_PROTO -O
  1152. MFLAGS=
  1153. LFLAGS=
  1154. LIBS=   -lcurses
  1155. MLIBS=
  1156. X# Additional local libraries
  1157. LLIBS=
  1158. X
  1159. X# --------------------------------------------------------------------- #
  1160. X
  1161. X# Some needed commands to create utree
  1162. CC=     cc
  1163. CP=     cp
  1164. STRIP=  strip
  1165. X
  1166. X# --------------------------------------------------------------------- #
  1167. X
  1168. X# Utree executables
  1169. UTREE=  ../bin/utree
  1170. UTPRL=  ../bin/utree.prlist
  1171. X
  1172. X# --------------------------------------------------------------------- #
  1173. X
  1174. X# Utree header files
  1175. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1176. X
  1177. X# Utree sources and objects
  1178. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1179. X    stat.c term.c tree.c util.c vars.c vers.c
  1180. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1181. X    stat.o term.o tree.o util.o vars.o vers.o
  1182. X
  1183. X# --------------------------------------------------------------------- #
  1184. X
  1185. all:    utree utree.prlist
  1186. X
  1187. utree:  $(UTREE)
  1188. X
  1189. strip:  $(UTREE)
  1190. X    $(CP) $(UTREE) $(UTREE)+sym
  1191. X    $(STRIP) $(UTREE)
  1192. X
  1193. utree.prlist:   $(UTPRL)
  1194. X
  1195. X# Compile and link utree
  1196. X$(UTREE):       $(OBJS)
  1197. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1198. X
  1199. X# Compile and link utree.prlist
  1200. X$(UTPRL):       utree.prlist.c
  1201. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1202. X
  1203. X# Clean up
  1204. clean:
  1205. X    rm -f core *.o
  1206. X
  1207. X# --------------------------------------------------------------------- #
  1208. X
  1209. X$(OBJS):        $(DEFS)
  1210. X    $(CC) $(CFLAGS) -c $<
  1211. X
  1212. X# --------------------------------------------------------------------- #
  1213. X
  1214. END_OF_FILE
  1215. if test 1742 -ne `wc -c <'sys/Makefile.AIX'`; then
  1216.     echo shar: \"'sys/Makefile.AIX'\" unpacked with wrong size!
  1217. fi
  1218. # end of 'sys/Makefile.AIX'
  1219. fi
  1220. if test -f 'sys/Makefile.APP' -a "${1}" != "-c" ; then 
  1221.   echo shar: Will not clobber existing file \"'sys/Makefile.APP'\"
  1222. else
  1223. echo shar: Extracting \"'sys/Makefile.APP'\" \(1790 characters\)
  1224. sed "s/^X//" >'sys/Makefile.APP' <<'END_OF_FILE'
  1225. X#
  1226. X#       Makefile for UTREE
  1227. X#       klin, Mon Feb 24 00:02:38 1992
  1228. X#
  1229. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1230. X#
  1231. X#       Version: Apollo Domain DN4500, DomainIX 9.5 (BSD4.2 + SYSV)
  1232. X
  1233. X# Compiler flags, loader flags and libraries
  1234. CFLAGS= -DBSD -DAPOLLO -O
  1235. MFLAGS=
  1236. LFLAGS=
  1237. LIBS=   -ltermcap
  1238. MLIBS=
  1239. X# Additional local libraries
  1240. LLIBS=
  1241. X
  1242. X# --------------------------------------------------------------------- #
  1243. X
  1244. X# Some needed commands to create utree
  1245. CC=     cc
  1246. CP=     cp
  1247. STRIP=  strip
  1248. X
  1249. X# --------------------------------------------------------------------- #
  1250. X
  1251. X# Utree executables
  1252. UTREE=  ../bin/utree
  1253. UTPRL=  ../bin/utree.prlist
  1254. X
  1255. X# --------------------------------------------------------------------- #
  1256. X
  1257. X# Utree header files
  1258. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1259. X
  1260. X# Utree sources and objects
  1261. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1262. X    stat.c term.c tree.c util.c vars.c vers.c getopt.c
  1263. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1264. X    stat.o term.o tree.o util.o vars.o vers.o getopt.o
  1265. X
  1266. X# --------------------------------------------------------------------- #
  1267. X
  1268. all:    utree utree.prlist
  1269. X
  1270. utree:  $(UTREE)
  1271. X
  1272. strip:  $(UTREE)
  1273. X    $(CP) $(UTREE) $(UTREE)+sym
  1274. X    $(STRIP) $(UTREE)
  1275. X
  1276. utree.prlist:   $(UTPRL)
  1277. X
  1278. X# Compile and link utree
  1279. X$(UTREE):       $(OBJS)
  1280. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1281. X
  1282. X# Compile and link utree.prlist
  1283. X$(UTPRL):       utree.prlist.c getopt.o
  1284. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1285. X
  1286. X# Clean up
  1287. clean:
  1288. X    rm -f core *.o
  1289. X
  1290. X# --------------------------------------------------------------------- #
  1291. X
  1292. X$(OBJS):        $(DEFS)
  1293. X    $(CC) $(CFLAGS) -c $<
  1294. X
  1295. X# --------------------------------------------------------------------- #
  1296. X
  1297. END_OF_FILE
  1298. if test 1790 -ne `wc -c <'sys/Makefile.APP'`; then
  1299.     echo shar: \"'sys/Makefile.APP'\" unpacked with wrong size!
  1300. fi
  1301. # end of 'sys/Makefile.APP'
  1302. fi
  1303. if test -f 'sys/Makefile.BSD' -a "${1}" != "-c" ; then 
  1304.   echo shar: Will not clobber existing file \"'sys/Makefile.BSD'\"
  1305. else
  1306. echo shar: Extracting \"'sys/Makefile.BSD'\" \(1786 characters\)
  1307. sed "s/^X//" >'sys/Makefile.BSD' <<'END_OF_FILE'
  1308. X#
  1309. X#       Makefile for UTREE
  1310. X#       klin, Mon Feb 24 00:02:38 1992
  1311. X#
  1312. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1313. X#
  1314. X#       Version:        Generic for BSD 4.2 or 4.3
  1315. X
  1316. X# Compiler flags, loader flags and libraries
  1317. CFLAGS= -DBSD -O
  1318. MFLAGS=
  1319. LFLAGS=
  1320. LIBS=   -ltermcap
  1321. MLIBS=
  1322. X# Additional local libraries
  1323. LLIBS=
  1324. X
  1325. X# --------------------------------------------------------------------- #
  1326. X
  1327. X# Some needed commands to create utree
  1328. CC=     cc
  1329. CP=     cp
  1330. STRIP=  strip
  1331. X
  1332. X# --------------------------------------------------------------------- #
  1333. X
  1334. X# Utree executables
  1335. UTREE=  ../bin/utree
  1336. UTPRL=  ../bin/utree.prlist
  1337. X
  1338. X# --------------------------------------------------------------------- #
  1339. X
  1340. X# Utree header files
  1341. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1342. X
  1343. X# Utree sources and objects
  1344. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1345. X    stat.c term.c tree.c util.c vars.c vers.c getopt.c vsprintf.c
  1346. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1347. X    stat.o term.o tree.o util.o vars.o vers.o getopt.o vsprintf.o
  1348. X
  1349. X# --------------------------------------------------------------------- #
  1350. X
  1351. all:    utree utree.prlist
  1352. X
  1353. utree:  $(UTREE)
  1354. X
  1355. strip:  $(UTREE)
  1356. X    $(CP) $(UTREE) $(UTREE)+sym
  1357. X    $(STRIP) $(UTREE)
  1358. X
  1359. utree.prlist:   $(UTPRL)
  1360. X
  1361. X# Compile and link utree
  1362. X$(UTREE):       $(OBJS)
  1363. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1364. X
  1365. X# Compile and link utree.prlist
  1366. X$(UTPRL):       utree.prlist.c getopt.o
  1367. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1368. X
  1369. X# Clean up
  1370. clean:
  1371. X    rm -f core *.o
  1372. X
  1373. X# --------------------------------------------------------------------- #
  1374. X
  1375. X$(OBJS):        $(DEFS)
  1376. X    $(CC) $(CFLAGS) -c $<
  1377. X
  1378. X# --------------------------------------------------------------------- #
  1379. X
  1380. END_OF_FILE
  1381. if test 1786 -ne `wc -c <'sys/Makefile.BSD'`; then
  1382.     echo shar: \"'sys/Makefile.BSD'\" unpacked with wrong size!
  1383. fi
  1384. # end of 'sys/Makefile.BSD'
  1385. fi
  1386. if test -f 'sys/Makefile.CON' -a "${1}" != "-c" ; then 
  1387.   echo shar: Will not clobber existing file \"'sys/Makefile.CON'\"
  1388. else
  1389. echo shar: Extracting \"'sys/Makefile.CON'\" \(1741 characters\)
  1390. sed "s/^X//" >'sys/Makefile.CON' <<'END_OF_FILE'
  1391. X#
  1392. X#       Makefile for UTREE
  1393. X#       klin, Mon Feb 24 00:02:38 1992
  1394. X#
  1395. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1396. X#
  1397. X#       Version:        Convex C120, ConvexOS 8.1
  1398. X
  1399. X# Compiler flags, loader flags and libraries
  1400. CFLAGS= -pcc -DBSD -O
  1401. MFLAGS=
  1402. LFLAGS=
  1403. LIBS=   -ltermcap
  1404. MLIBS=
  1405. X# Additional local libraries
  1406. LLIBS=
  1407. X
  1408. X# --------------------------------------------------------------------- #
  1409. X
  1410. X# Some needed commands to create utree
  1411. CC=     cc
  1412. CP=     cp
  1413. STRIP=  strip
  1414. X
  1415. X# --------------------------------------------------------------------- #
  1416. X
  1417. X# Utree executables
  1418. UTREE=  ../bin/utree
  1419. UTPRL=  ../bin/utree.prlist
  1420. X
  1421. X# --------------------------------------------------------------------- #
  1422. X
  1423. X# Utree header files
  1424. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1425. X
  1426. X# Utree sources and objects
  1427. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1428. X    stat.c term.c tree.c util.c vars.c vers.c
  1429. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1430. X    stat.o term.o tree.o util.o vars.o vers.o
  1431. X
  1432. X# --------------------------------------------------------------------- #
  1433. X
  1434. all:    utree utree.prlist
  1435. X
  1436. utree:  $(UTREE)
  1437. X
  1438. strip:  $(UTREE)
  1439. X    $(CP) $(UTREE) $(UTREE)+sym
  1440. X    $(STRIP) $(UTREE)
  1441. X
  1442. utree.prlist:   $(UTPRL)
  1443. X
  1444. X# Compile and link utree
  1445. X$(UTREE):       $(OBJS)
  1446. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1447. X
  1448. X# Compile and link utree.prlist
  1449. X$(UTPRL):       utree.prlist.c
  1450. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1451. X
  1452. X# Clean up
  1453. clean:
  1454. X    rm -f core *.o
  1455. X
  1456. X# --------------------------------------------------------------------- #
  1457. X
  1458. X$(OBJS):        $(DEFS)
  1459. X    $(CC) $(CFLAGS) -c $<
  1460. X
  1461. X# --------------------------------------------------------------------- #
  1462. X
  1463. END_OF_FILE
  1464. if test 1741 -ne `wc -c <'sys/Makefile.CON'`; then
  1465.     echo shar: \"'sys/Makefile.CON'\" unpacked with wrong size!
  1466. fi
  1467. # end of 'sys/Makefile.CON'
  1468. fi
  1469. if test -f 'sys/Makefile.M16' -a "${1}" != "-c" ; then 
  1470.   echo shar: Will not clobber existing file \"'sys/Makefile.M16'\"
  1471. else
  1472. echo shar: Extracting \"'sys/Makefile.M16'\" \(1743 characters\)
  1473. sed "s/^X//" >'sys/Makefile.M16' <<'END_OF_FILE'
  1474. X#
  1475. X#       Makefile for UTREE
  1476. X#       klin, Mon Feb 24 00:02:38 1992
  1477. X#
  1478. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1479. X#
  1480. X#       Version: PCS Cadmus 9230, MUNIX V.2/07 (SYSV 2)
  1481. X
  1482. X# Compiler flags, loader flags and libraries
  1483. CFLAGS= -O
  1484. MFLAGS= -f
  1485. LFLAGS=
  1486. LIBS=   -lcurses
  1487. MLIBS=  -lm
  1488. X# Additional local libraries
  1489. LLIBS=
  1490. X
  1491. X# --------------------------------------------------------------------- #
  1492. X
  1493. X# Some needed commands to create utree
  1494. CC=     cc
  1495. CP=     cp
  1496. STRIP=  strip
  1497. X
  1498. X# --------------------------------------------------------------------- #
  1499. X
  1500. X# Utree executables
  1501. UTREE=  ../bin/utree
  1502. UTPRL=  ../bin/utree.prlist
  1503. X
  1504. X# --------------------------------------------------------------------- #
  1505. X
  1506. X# Utree header files
  1507. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1508. X
  1509. X# Utree sources and objects
  1510. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1511. X    stat.c term.c tree.c util.c vars.c vers.c
  1512. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1513. X    stat.o term.o tree.o util.o vars.o vers.o
  1514. X
  1515. X# --------------------------------------------------------------------- #
  1516. X
  1517. all:    utree utree.prlist
  1518. X
  1519. utree:  $(UTREE)
  1520. X
  1521. strip:  $(UTREE)
  1522. X    $(CP) $(UTREE) $(UTREE)+sym
  1523. X    $(STRIP) $(UTREE)
  1524. X
  1525. utree.prlist:   $(UTPRL)
  1526. X
  1527. X# Compile and link utree
  1528. X$(UTREE):       $(OBJS)
  1529. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1530. X
  1531. X# Compile and link utree.prlist
  1532. X$(UTPRL):       utree.prlist.c
  1533. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1534. X
  1535. X# Clean up
  1536. clean:
  1537. X    rm -f core *.o
  1538. X
  1539. X# --------------------------------------------------------------------- #
  1540. X
  1541. X$(OBJS):        $(DEFS)
  1542. X    $(CC) $(CFLAGS) -c $<
  1543. X
  1544. X# --------------------------------------------------------------------- #
  1545. X
  1546. END_OF_FILE
  1547. if test 1743 -ne `wc -c <'sys/Makefile.M16'`; then
  1548.     echo shar: \"'sys/Makefile.M16'\" unpacked with wrong size!
  1549. fi
  1550. # end of 'sys/Makefile.M16'
  1551. fi
  1552. if test -f 'sys/Makefile.M32' -a "${1}" != "-c" ; then 
  1553.   echo shar: Will not clobber existing file \"'sys/Makefile.M32'\"
  1554. else
  1555. echo shar: Extracting \"'sys/Makefile.M32'\" \(1769 characters\)
  1556. sed "s/^X//" >'sys/Makefile.M32' <<'END_OF_FILE'
  1557. X#
  1558. X#       Makefile for UTREE
  1559. X#       klin, Mon Feb 24 00:02:38 1992
  1560. X#
  1561. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1562. X#
  1563. X#       Version: PCS Cadmus 9600 (MC68020), MUNIX V3M3.2 (SYSV.3)
  1564. X
  1565. X# Compiler flags, loader flags and libraries
  1566. CFLAGS= -O
  1567. MFLAGS= -fH
  1568. LFLAGS=
  1569. LIBS=   -lcurses_s
  1570. MLIBS=  -lm
  1571. X# Additional local libraries
  1572. LLIBS=  -lc_s -lbsd
  1573. X
  1574. X# --------------------------------------------------------------------- #
  1575. X
  1576. X# Some needed commands to create utree
  1577. CC=     cc
  1578. CP=     cp
  1579. STRIP=  strip
  1580. X
  1581. X# --------------------------------------------------------------------- #
  1582. X
  1583. X# Utree executables
  1584. UTREE=  ../bin/utree
  1585. UTPRL=  ../bin/utree.prlist
  1586. X
  1587. X# --------------------------------------------------------------------- #
  1588. X
  1589. X# Utree header files
  1590. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1591. X
  1592. X# Utree sources and objects
  1593. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1594. X    stat.c term.c tree.c util.c vars.c vers.c
  1595. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1596. X    stat.o term.o tree.o util.o vars.o vers.o
  1597. X
  1598. X# --------------------------------------------------------------------- #
  1599. X
  1600. all:    utree utree.prlist
  1601. X
  1602. utree:  $(UTREE)
  1603. X
  1604. strip:  $(UTREE)
  1605. X    $(CP) $(UTREE) $(UTREE)+sym
  1606. X    $(STRIP) $(UTREE)
  1607. X
  1608. utree.prlist:   $(UTPRL)
  1609. X
  1610. X# Compile and link utree
  1611. X$(UTREE):       $(OBJS)
  1612. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1613. X
  1614. X# Compile and link utree.prlist
  1615. X$(UTPRL):       utree.prlist.c
  1616. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1617. X
  1618. X# Clean up
  1619. clean:
  1620. X    rm -f core *.o
  1621. X
  1622. X# --------------------------------------------------------------------- #
  1623. X
  1624. X$(OBJS):        $(DEFS)
  1625. X    $(CC) $(CFLAGS) -c $<
  1626. X
  1627. X# --------------------------------------------------------------------- #
  1628. X
  1629. END_OF_FILE
  1630. if test 1769 -ne `wc -c <'sys/Makefile.M32'`; then
  1631.     echo shar: \"'sys/Makefile.M32'\" unpacked with wrong size!
  1632. fi
  1633. # end of 'sys/Makefile.M32'
  1634. fi
  1635. if test -f 'sys/Makefile.MIPS' -a "${1}" != "-c" ; then 
  1636.   echo shar: Will not clobber existing file \"'sys/Makefile.MIPS'\"
  1637. else
  1638. echo shar: Extracting \"'sys/Makefile.MIPS'\" \(1761 characters\)
  1639. sed "s/^X//" >'sys/Makefile.MIPS' <<'END_OF_FILE'
  1640. X#
  1641. X#       Makefile for UTREE
  1642. X#       klin, Mon Feb 24 00:02:38 1992
  1643. X#
  1644. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1645. X#
  1646. X#       Version:        MIPS RC3230 RISC/os 4.51 (SystemV.3 + BSD4.3)
  1647. X
  1648. X# Compiler flags, loader flags and libraries
  1649. CFLAGS= -O -Olimit 800
  1650. MFLAGS=
  1651. LFLAGS=
  1652. LIBS=   -lcurses
  1653. MLIBS=
  1654. X# Additional local libraries
  1655. LLIBS=
  1656. X
  1657. X# --------------------------------------------------------------------- #
  1658. X
  1659. X# Some needed commands to create utree
  1660. CC=     cc
  1661. CP=     cp
  1662. STRIP=  strip
  1663. X
  1664. X# --------------------------------------------------------------------- #
  1665. X
  1666. X# Utree executables
  1667. UTREE=  ../bin/utree
  1668. UTPRL=  ../bin/utree.prlist
  1669. X
  1670. X# --------------------------------------------------------------------- #
  1671. X
  1672. X# Utree header files
  1673. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1674. X
  1675. X# Utree sources and objects
  1676. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1677. X    stat.c term.c tree.c util.c vars.c vers.c
  1678. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1679. X    stat.o term.o tree.o util.o vars.o vers.o
  1680. X
  1681. X# --------------------------------------------------------------------- #
  1682. X
  1683. all:    utree utree.prlist
  1684. X
  1685. utree:  $(UTREE)
  1686. X
  1687. strip:  $(UTREE)
  1688. X    $(CP) $(UTREE) $(UTREE)+sym
  1689. X    $(STRIP) $(UTREE)
  1690. X
  1691. utree.prlist:   $(UTPRL)
  1692. X
  1693. X# Compile and link utree
  1694. X$(UTREE):       $(OBJS)
  1695. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1696. X
  1697. X# Compile and link utree.prlist
  1698. X$(UTPRL):       utree.prlist.c
  1699. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1700. X
  1701. X# Clean up
  1702. clean:
  1703. X    rm -f core *.o
  1704. X
  1705. X# --------------------------------------------------------------------- #
  1706. X
  1707. X$(OBJS):        $(DEFS)
  1708. X    $(CC) $(CFLAGS) -c $<
  1709. X
  1710. X# --------------------------------------------------------------------- #
  1711. X
  1712. END_OF_FILE
  1713. if test 1761 -ne `wc -c <'sys/Makefile.MIPS'`; then
  1714.     echo shar: \"'sys/Makefile.MIPS'\" unpacked with wrong size!
  1715. fi
  1716. # end of 'sys/Makefile.MIPS'
  1717. fi
  1718. if test -f 'sys/Makefile.RCU' -a "${1}" != "-c" ; then 
  1719.   echo shar: Will not clobber existing file \"'sys/Makefile.RCU'\"
  1720. else
  1721. echo shar: Extracting \"'sys/Makefile.RCU'\" \(1769 characters\)
  1722. sed "s/^X//" >'sys/Makefile.RCU' <<'END_OF_FILE'
  1723. X#
  1724. X#       Makefile for UTREE
  1725. X#       klin, Mon Feb 24 00:02:38 1992
  1726. X#
  1727. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1728. X#
  1729. X#       Version: PCS Cadmus 9900 (MIPS R2000/3000), MUNIX V3R3.2A (SYSV.3)
  1730. X
  1731. X# Compiler flags, loader flags and libraries
  1732. CFLAGS= -O
  1733. MFLAGS=
  1734. LFLAGS=
  1735. LIBS=   -lcurses_s
  1736. MLIBS=
  1737. X# Additional local libraries
  1738. LLIBS=  -lc_s -lbsd
  1739. X
  1740. X# --------------------------------------------------------------------- #
  1741. X
  1742. X# Some needed commands to create utree
  1743. CC=     cc
  1744. CP=     cp
  1745. STRIP=  strip
  1746. X
  1747. X# --------------------------------------------------------------------- #
  1748. X
  1749. X# Utree executables
  1750. UTREE=  ../bin/utree
  1751. UTPRL=  ../bin/utree.prlist
  1752. X
  1753. X# --------------------------------------------------------------------- #
  1754. X
  1755. X# Utree header files
  1756. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1757. X
  1758. X# Utree sources and objects
  1759. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1760. X    stat.c term.c tree.c util.c vars.c vers.c
  1761. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1762. X    stat.o term.o tree.o util.o vars.o vers.o
  1763. X
  1764. X# --------------------------------------------------------------------- #
  1765. X
  1766. all:    utree utree.prlist
  1767. X
  1768. utree:  $(UTREE)
  1769. X
  1770. strip:  $(UTREE)
  1771. X    $(CP) $(UTREE) $(UTREE)+sym
  1772. X    $(STRIP) $(UTREE)
  1773. X
  1774. utree.prlist:   $(UTPRL)
  1775. X
  1776. X# Compile and link utree
  1777. X$(UTREE):       $(OBJS)
  1778. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1779. X
  1780. X# Compile and link utree.prlist
  1781. X$(UTPRL):       utree.prlist.c
  1782. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1783. X
  1784. X# Clean up
  1785. clean:
  1786. X    rm -f core *.o
  1787. X
  1788. X# --------------------------------------------------------------------- #
  1789. X
  1790. X$(OBJS):        $(DEFS)
  1791. X    $(CC) $(CFLAGS) -c $<
  1792. X
  1793. X# --------------------------------------------------------------------- #
  1794. X
  1795. END_OF_FILE
  1796. if test 1769 -ne `wc -c <'sys/Makefile.RCU'`; then
  1797.     echo shar: \"'sys/Makefile.RCU'\" unpacked with wrong size!
  1798. fi
  1799. # end of 'sys/Makefile.RCU'
  1800. fi
  1801. if test -f 'sys/Makefile.SCO' -a "${1}" != "-c" ; then 
  1802.   echo shar: Will not clobber existing file \"'sys/Makefile.SCO'\"
  1803. else
  1804. echo shar: Extracting \"'sys/Makefile.SCO'\" \(1754 characters\)
  1805. sed "s/^X//" >'sys/Makefile.SCO' <<'END_OF_FILE'
  1806. X#
  1807. X#       Makefile for UTREE
  1808. X#       klin, Mon Feb 24 00:02:38 1992
  1809. X#
  1810. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1811. X#
  1812. X#       Version: HP Vectra (i486), SCO UNIX System V/386 3.2
  1813. X
  1814. X# Compiler flags, loader flags and libraries
  1815. CFLAGS= -Ox
  1816. MFLAGS=
  1817. LFLAGS=
  1818. LIBS=   -lcurses
  1819. MLIBS=
  1820. X# Additional local libraries
  1821. LLIBS=        -lc_s
  1822. X
  1823. X# --------------------------------------------------------------------- #
  1824. X
  1825. X# Some needed commands to create utree
  1826. CC=     cc
  1827. CP=     cp
  1828. STRIP=  strip
  1829. X
  1830. X# --------------------------------------------------------------------- #
  1831. X
  1832. X# Utree executables
  1833. UTREE=  ../bin/utree
  1834. UTPRL=  ../bin/utree.prlist
  1835. X
  1836. X# --------------------------------------------------------------------- #
  1837. X
  1838. X# Utree header files
  1839. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1840. X
  1841. X# Utree sources and objects
  1842. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1843. X    stat.c term.c tree.c util.c vars.c vers.c
  1844. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1845. X    stat.o term.o tree.o util.o vars.o vers.o
  1846. X
  1847. X# --------------------------------------------------------------------- #
  1848. X
  1849. all:    utree utree.prlist
  1850. X
  1851. utree:  $(UTREE)
  1852. X
  1853. strip:  $(UTREE)
  1854. X    $(CP) $(UTREE) $(UTREE)+sym
  1855. X    $(STRIP) $(UTREE)
  1856. X
  1857. utree.prlist:   $(UTPRL)
  1858. X
  1859. X# Compile and link utree
  1860. X$(UTREE):       $(OBJS)
  1861. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1862. X
  1863. X# Compile and link utree.prlist
  1864. X$(UTPRL):       utree.prlist.c
  1865. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1866. X
  1867. X# Clean up
  1868. clean:
  1869. X    rm -f core *.o
  1870. X
  1871. X# --------------------------------------------------------------------- #
  1872. X
  1873. X$(OBJS):        $(DEFS)
  1874. X    $(CC) $(CFLAGS) -c $<
  1875. X
  1876. X# --------------------------------------------------------------------- #
  1877. X
  1878. END_OF_FILE
  1879. if test 1754 -ne `wc -c <'sys/Makefile.SCO'`; then
  1880.     echo shar: \"'sys/Makefile.SCO'\" unpacked with wrong size!
  1881. fi
  1882. # end of 'sys/Makefile.SCO'
  1883. fi
  1884. if test -f 'sys/Makefile.SEQ' -a "${1}" != "-c" ; then 
  1885.   echo shar: Will not clobber existing file \"'sys/Makefile.SEQ'\"
  1886. else
  1887. echo shar: Extracting \"'sys/Makefile.SEQ'\" \(1772 characters\)
  1888. sed "s/^X//" >'sys/Makefile.SEQ' <<'END_OF_FILE'
  1889. X#
  1890. X#       Makefile for UTREE
  1891. X#       klin, Mon Feb 24 00:02:38 1992
  1892. X#
  1893. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1894. X#
  1895. X#       Version: Sequent Symmetrie, DYNIX i386 (BSD 4.2)
  1896. X
  1897. X# Compiler flags, loader flags and libraries
  1898. CFLAGS= -DBSD -O
  1899. MFLAGS=
  1900. LFLAGS=
  1901. LIBS=   -ltermcap
  1902. MLIBS=
  1903. X# Additional local libraries
  1904. LLIBS=  -lseq
  1905. X
  1906. X# --------------------------------------------------------------------- #
  1907. X
  1908. X# Some needed commands to create utree
  1909. CC=     cc
  1910. CP=     cp
  1911. STRIP=  strip
  1912. X
  1913. X# --------------------------------------------------------------------- #
  1914. X
  1915. X# Utree executables
  1916. UTREE=  ../bin/utree
  1917. UTPRL=  ../bin/utree.prlist
  1918. X
  1919. X# --------------------------------------------------------------------- #
  1920. X
  1921. X# Utree header files
  1922. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  1923. X
  1924. X# Utree sources and objects
  1925. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  1926. X    stat.c term.c tree.c util.c vars.c vers.c vsprintf.c
  1927. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  1928. X    stat.o term.o tree.o util.o vars.o vers.o vsprintf.o
  1929. X
  1930. X# --------------------------------------------------------------------- #
  1931. X
  1932. all:    utree utree.prlist
  1933. X
  1934. utree:  $(UTREE)
  1935. X
  1936. strip:  $(UTREE)
  1937. X    $(CP) $(UTREE) $(UTREE)+sym
  1938. X    $(STRIP) $(UTREE)
  1939. X
  1940. utree.prlist:   $(UTPRL)
  1941. X
  1942. X# Compile and link utree
  1943. X$(UTREE):       $(OBJS)
  1944. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  1945. X
  1946. X# Compile and link utree.prlist
  1947. X$(UTPRL):       utree.prlist.c
  1948. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  1949. X
  1950. X# Clean up
  1951. clean:
  1952. X    rm -f core *.o
  1953. X
  1954. X# --------------------------------------------------------------------- #
  1955. X
  1956. X$(OBJS):        $(DEFS)
  1957. X    $(CC) $(CFLAGS) -c $<
  1958. X
  1959. X# --------------------------------------------------------------------- #
  1960. X
  1961. END_OF_FILE
  1962. if test 1772 -ne `wc -c <'sys/Makefile.SEQ'`; then
  1963.     echo shar: \"'sys/Makefile.SEQ'\" unpacked with wrong size!
  1964. fi
  1965. # end of 'sys/Makefile.SEQ'
  1966. fi
  1967. if test -f 'sys/Makefile.SGI' -a "${1}" != "-c" ; then 
  1968.   echo shar: Will not clobber existing file \"'sys/Makefile.SGI'\"
  1969. else
  1970. echo shar: Extracting \"'sys/Makefile.SGI'\" \(1746 characters\)
  1971. sed "s/^X//" >'sys/Makefile.SGI' <<'END_OF_FILE'
  1972. X#
  1973. X#       Makefile for UTREE
  1974. X#       klin, Mon Feb 24 00:02:38 1992
  1975. X#
  1976. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  1977. X#
  1978. X#       Version: Silicon Graphics 4D, IRIX V.3.3.2 (SYSV 3)
  1979. X
  1980. X# Compiler flags, loader flags and libraries
  1981. CFLAGS= -O
  1982. MFLAGS=
  1983. LFLAGS=
  1984. LIBS=   -lcurses
  1985. MLIBS=
  1986. X# Additional local libraries
  1987. LLIBS=  -lbsd
  1988. X
  1989. X# --------------------------------------------------------------------- #
  1990. X
  1991. X# Some needed commands to create utree
  1992. CC=     cc
  1993. CP=     cp
  1994. STRIP=  strip
  1995. X
  1996. X# --------------------------------------------------------------------- #
  1997. X
  1998. X# Utree executables
  1999. UTREE=  ../bin/utree
  2000. UTPRL=  ../bin/utree.prlist
  2001. X
  2002. X# --------------------------------------------------------------------- #
  2003. X
  2004. X# Utree header files
  2005. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2006. X
  2007. X# Utree sources and objects
  2008. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2009. X    stat.c term.c tree.c util.c vars.c vers.c
  2010. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2011. X    stat.o term.o tree.o util.o vars.o vers.o
  2012. X
  2013. X# --------------------------------------------------------------------- #
  2014. X
  2015. all:    utree utree.prlist
  2016. X
  2017. utree:  $(UTREE)
  2018. X
  2019. strip:  $(UTREE)
  2020. X    $(CP) $(UTREE) $(UTREE)+sym
  2021. X    $(STRIP) $(UTREE)
  2022. X
  2023. utree.prlist:   $(UTPRL)
  2024. X
  2025. X# Compile and link utree
  2026. X$(UTREE):       $(OBJS)
  2027. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2028. X
  2029. X# Compile and link utree.prlist
  2030. X$(UTPRL):       utree.prlist.c
  2031. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2032. X
  2033. X# Clean up
  2034. clean:
  2035. X    rm -f core *.o
  2036. X
  2037. X# --------------------------------------------------------------------- #
  2038. X
  2039. X$(OBJS):        $(DEFS)
  2040. X    $(CC) $(CFLAGS) -c $<
  2041. X
  2042. X# --------------------------------------------------------------------- #
  2043. X
  2044. END_OF_FILE
  2045. if test 1746 -ne `wc -c <'sys/Makefile.SGI'`; then
  2046.     echo shar: \"'sys/Makefile.SGI'\" unpacked with wrong size!
  2047. fi
  2048. # end of 'sys/Makefile.SGI'
  2049. fi
  2050. if test -f 'sys/Makefile.SUN' -a "${1}" != "-c" ; then 
  2051.   echo shar: Will not clobber existing file \"'sys/Makefile.SUN'\"
  2052. else
  2053. echo shar: Extracting \"'sys/Makefile.SUN'\" \(1766 characters\)
  2054. sed "s/^X//" >'sys/Makefile.SUN' <<'END_OF_FILE'
  2055. X#
  2056. X#       Makefile for UTREE
  2057. X#       klin, Mon Feb 24 00:02:38 1992
  2058. X#
  2059. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  2060. X#
  2061. X#       Version:        SUN4 (SPARC) SunOs 4.1.x
  2062. X
  2063. X# Compiler flags, loader flags and libraries
  2064. CFLAGS= -DBSD   # -O -> coredump in token() ???
  2065. MFLAGS=
  2066. LFLAGS=
  2067. LIBS=   -ltermcap
  2068. MLIBS=
  2069. X# Additional local libraries
  2070. LLIBS=
  2071. X
  2072. X# --------------------------------------------------------------------- #
  2073. X
  2074. X# Some needed commands to create utree
  2075. CC=     cc
  2076. CP=     cp
  2077. STRIP=  strip
  2078. X
  2079. X# --------------------------------------------------------------------- #
  2080. X
  2081. X# Utree executables
  2082. UTREE=  ../bin/utree
  2083. UTPRL=  ../bin/utree.prlist
  2084. X
  2085. X# --------------------------------------------------------------------- #
  2086. X
  2087. X# Utree header files
  2088. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2089. X
  2090. X# Utree sources and objects
  2091. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2092. X    stat.c term.c tree.c util.c vars.c vers.c
  2093. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2094. X    stat.o term.o tree.o util.o vars.o vers.o
  2095. X
  2096. X# --------------------------------------------------------------------- #
  2097. X
  2098. all:    utree utree.prlist
  2099. X
  2100. utree:  $(UTREE)
  2101. X
  2102. strip:  $(UTREE)
  2103. X    $(CP) $(UTREE) $(UTREE)+sym
  2104. X    $(STRIP) $(UTREE)
  2105. X
  2106. utree.prlist:   $(UTPRL)
  2107. X
  2108. X# Compile and link utree
  2109. X$(UTREE):       $(OBJS)
  2110. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2111. X
  2112. X# Compile and link utree.prlist
  2113. X$(UTPRL):       utree.prlist.c
  2114. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2115. X
  2116. X# Clean up
  2117. clean:
  2118. X    rm -f core *.o
  2119. X
  2120. X# --------------------------------------------------------------------- #
  2121. X
  2122. X$(OBJS):        $(DEFS)
  2123. X    $(CC) $(CFLAGS) -c $<
  2124. X
  2125. X# --------------------------------------------------------------------- #
  2126. X
  2127. END_OF_FILE
  2128. if test 1766 -ne `wc -c <'sys/Makefile.SUN'`; then
  2129.     echo shar: \"'sys/Makefile.SUN'\" unpacked with wrong size!
  2130. fi
  2131. # end of 'sys/Makefile.SUN'
  2132. fi
  2133. if test -f 'sys/Makefile.ULT' -a "${1}" != "-c" ; then 
  2134.   echo shar: Will not clobber existing file \"'sys/Makefile.ULT'\"
  2135. else
  2136. echo shar: Extracting \"'sys/Makefile.ULT'\" \(1757 characters\)
  2137. sed "s/^X//" >'sys/Makefile.ULT' <<'END_OF_FILE'
  2138. X#
  2139. X#       Makefile for UTREE
  2140. X#       klin, Mon Feb 24 00:02:38 1992
  2141. X#
  2142. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  2143. X#
  2144. X#       Version:        DECstation/VAXstation, ULTRIX-32 3.1 (BSD 4.3)
  2145. X
  2146. X# Compiler flags, loader flags and libraries
  2147. CFLAGS= -DBSD -O
  2148. MFLAGS=
  2149. LFLAGS=
  2150. LIBS=   -ltermcap
  2151. MLIBS=
  2152. X# Additional local libraries
  2153. LLIBS=
  2154. X
  2155. X# --------------------------------------------------------------------- #
  2156. X
  2157. X# Some needed commands to create utree
  2158. CC=     cc
  2159. CP=     cp
  2160. STRIP=  strip
  2161. X
  2162. X# --------------------------------------------------------------------- #
  2163. X
  2164. X# Utree executables
  2165. UTREE=  ../bin/utree
  2166. UTPRL=  ../bin/utree.prlist
  2167. X
  2168. X# --------------------------------------------------------------------- #
  2169. X
  2170. X# Utree header files
  2171. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2172. X
  2173. X# Utree sources and objects
  2174. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2175. X    stat.c term.c tree.c util.c vars.c vers.c
  2176. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2177. X    stat.o term.o tree.o util.o vars.o vers.o
  2178. X
  2179. X# --------------------------------------------------------------------- #
  2180. X
  2181. all:    utree utree.prlist
  2182. X
  2183. utree:  $(UTREE)
  2184. X
  2185. strip:  $(UTREE)
  2186. X    $(CP) $(UTREE) $(UTREE)+sym
  2187. X    $(STRIP) $(UTREE)
  2188. X
  2189. utree.prlist:   $(UTPRL)
  2190. X
  2191. X# Compile and link utree
  2192. X$(UTREE):       $(OBJS)
  2193. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2194. X
  2195. X# Compile and link utree.prlist
  2196. X$(UTPRL):       utree.prlist.c
  2197. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2198. X
  2199. X# Clean up
  2200. clean:
  2201. X    rm -f core *.o
  2202. X
  2203. X# --------------------------------------------------------------------- #
  2204. X
  2205. X$(OBJS):        $(DEFS)
  2206. X    $(CC) $(CFLAGS) -c $<
  2207. X
  2208. X# --------------------------------------------------------------------- #
  2209. X
  2210. END_OF_FILE
  2211. if test 1757 -ne `wc -c <'sys/Makefile.ULT'`; then
  2212.     echo shar: \"'sys/Makefile.ULT'\" unpacked with wrong size!
  2213. fi
  2214. # end of 'sys/Makefile.ULT'
  2215. fi
  2216. if test -f 'sys/Makefile.V.2' -a "${1}" != "-c" ; then 
  2217.   echo shar: Will not clobber existing file \"'sys/Makefile.V.2'\"
  2218. else
  2219. echo shar: Extracting \"'sys/Makefile.V.2'\" \(1727 characters\)
  2220. sed "s/^X//" >'sys/Makefile.V.2' <<'END_OF_FILE'
  2221. X#
  2222. X#       Makefile for UTREE
  2223. X#       klin, Mon Feb 24 00:02:38 1992
  2224. X#
  2225. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  2226. X#
  2227. X#       Version: Generic for System V.2
  2228. X
  2229. X# Compiler flags, loader flags and libraries
  2230. CFLAGS= -O
  2231. MFLAGS= -f
  2232. LFLAGS=
  2233. LIBS=   -lcurses
  2234. MLIBS=  -lm
  2235. X# Additional local libraries
  2236. LLIBS=
  2237. X
  2238. X# --------------------------------------------------------------------- #
  2239. X
  2240. X# Some needed commands to create utree
  2241. CC=     cc
  2242. CP=     cp
  2243. STRIP=  strip
  2244. X
  2245. X# --------------------------------------------------------------------- #
  2246. X
  2247. X# Utree executables
  2248. UTREE=  ../bin/utree
  2249. UTPRL=  ../bin/utree.prlist
  2250. X
  2251. X# --------------------------------------------------------------------- #
  2252. X
  2253. X# Utree header files
  2254. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2255. X
  2256. X# Utree sources and objects
  2257. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2258. X    stat.c term.c tree.c util.c vars.c vers.c
  2259. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2260. X    stat.o term.o tree.o util.o vars.o vers.o
  2261. X
  2262. X# --------------------------------------------------------------------- #
  2263. X
  2264. all:    utree utree.prlist
  2265. X
  2266. utree:  $(UTREE)
  2267. X
  2268. strip:  $(UTREE)
  2269. X    $(CP) $(UTREE) $(UTREE)+sym
  2270. X    $(STRIP) $(UTREE)
  2271. X
  2272. utree.prlist:   $(UTPRL)
  2273. X
  2274. X# Compile and link utree
  2275. X$(UTREE):       $(OBJS)
  2276. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2277. X
  2278. X# Compile and link utree.prlist
  2279. X$(UTPRL):       utree.prlist.c
  2280. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2281. X
  2282. X# Clean up
  2283. clean:
  2284. X    rm -f core *.o
  2285. X
  2286. X# --------------------------------------------------------------------- #
  2287. X
  2288. X$(OBJS):        $(DEFS)
  2289. X    $(CC) $(CFLAGS) -c $<
  2290. X
  2291. X# --------------------------------------------------------------------- #
  2292. X
  2293. END_OF_FILE
  2294. if test 1727 -ne `wc -c <'sys/Makefile.V.2'`; then
  2295.     echo shar: \"'sys/Makefile.V.2'\" unpacked with wrong size!
  2296. fi
  2297. # end of 'sys/Makefile.V.2'
  2298. fi
  2299. if test -f 'sys/Makefile.V.3' -a "${1}" != "-c" ; then 
  2300.   echo shar: Will not clobber existing file \"'sys/Makefile.V.3'\"
  2301. else
  2302. echo shar: Extracting \"'sys/Makefile.V.3'\" \(1727 characters\)
  2303. sed "s/^X//" >'sys/Makefile.V.3' <<'END_OF_FILE'
  2304. X#
  2305. X#       Makefile for UTREE
  2306. X#       klin, Mon Feb 24 00:02:38 1992
  2307. X#
  2308. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  2309. X#
  2310. X#       Version: Generic for System V.3
  2311. X
  2312. X# Compiler flags, loader flags and libraries
  2313. CFLAGS= -O
  2314. MFLAGS= -f
  2315. LFLAGS=
  2316. LIBS=   -lcurses
  2317. MLIBS=  -lm
  2318. X# Additional local libraries
  2319. LLIBS=
  2320. X
  2321. X# --------------------------------------------------------------------- #
  2322. X
  2323. X# Some needed commands to create utree
  2324. CC=     cc
  2325. CP=     cp
  2326. STRIP=  strip
  2327. X
  2328. X# --------------------------------------------------------------------- #
  2329. X
  2330. X# Utree executables
  2331. UTREE=  ../bin/utree
  2332. UTPRL=  ../bin/utree.prlist
  2333. X
  2334. X# --------------------------------------------------------------------- #
  2335. X
  2336. X# Utree header files
  2337. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2338. X
  2339. X# Utree sources and objects
  2340. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2341. X    stat.c term.c tree.c util.c vars.c vers.c
  2342. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2343. X    stat.o term.o tree.o util.o vars.o vers.o
  2344. X
  2345. X# --------------------------------------------------------------------- #
  2346. X
  2347. all:    utree utree.prlist
  2348. X
  2349. utree:  $(UTREE)
  2350. X
  2351. strip:  $(UTREE)
  2352. X    $(CP) $(UTREE) $(UTREE)+sym
  2353. X    $(STRIP) $(UTREE)
  2354. X
  2355. utree.prlist:   $(UTPRL)
  2356. X
  2357. X# Compile and link utree
  2358. X$(UTREE):       $(OBJS)
  2359. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2360. X
  2361. X# Compile and link utree.prlist
  2362. X$(UTPRL):       utree.prlist.c
  2363. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2364. X
  2365. X# Clean up
  2366. clean:
  2367. X    rm -f core *.o
  2368. X
  2369. X# --------------------------------------------------------------------- #
  2370. X
  2371. X$(OBJS):        $(DEFS)
  2372. X    $(CC) $(CFLAGS) -c $<
  2373. X
  2374. X# --------------------------------------------------------------------- #
  2375. X
  2376. END_OF_FILE
  2377. if test 1727 -ne `wc -c <'sys/Makefile.V.3'`; then
  2378.     echo shar: \"'sys/Makefile.V.3'\" unpacked with wrong size!
  2379. fi
  2380. # end of 'sys/Makefile.V.3'
  2381. fi
  2382. if test -f 'sys/Makefile.VAX' -a "${1}" != "-c" ; then 
  2383.   echo shar: Will not clobber existing file \"'sys/Makefile.VAX'\"
  2384. else
  2385. echo shar: Extracting \"'sys/Makefile.VAX'\" \(1735 characters\)
  2386. sed "s/^X//" >'sys/Makefile.VAX' <<'END_OF_FILE'
  2387. X#
  2388. X#       Makefile for UTREE
  2389. X#       klin, Mon Feb 24 00:02:38 1992
  2390. X#
  2391. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  2392. X#
  2393. X#       Version:        DEC VAX/750, BSD4.3 UNIX
  2394. X
  2395. X# Compiler flags, loader flags and libraries
  2396. CFLAGS= -DBSD -O
  2397. MFLAGS=
  2398. LFLAGS=
  2399. LIBS=   -ltermcap
  2400. MLIBS=
  2401. X# Additional local libraries
  2402. LLIBS=
  2403. X
  2404. X# --------------------------------------------------------------------- #
  2405. X
  2406. X# Some needed commands to create utree
  2407. CC=     cc
  2408. CP=     cp
  2409. STRIP=  strip
  2410. X
  2411. X# --------------------------------------------------------------------- #
  2412. X
  2413. X# Utree executables
  2414. UTREE=  ../bin/utree
  2415. UTPRL=  ../bin/utree.prlist
  2416. X
  2417. X# --------------------------------------------------------------------- #
  2418. X
  2419. X# Utree header files
  2420. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2421. X
  2422. X# Utree sources and objects
  2423. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2424. X    stat.c term.c tree.c util.c vars.c vers.c
  2425. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2426. X    stat.o term.o tree.o util.o vars.o vers.o
  2427. X
  2428. X# --------------------------------------------------------------------- #
  2429. X
  2430. all:    utree utree.prlist
  2431. X
  2432. utree:  $(UTREE)
  2433. X
  2434. strip:  $(UTREE)
  2435. X    $(CP) $(UTREE) $(UTREE)+sym
  2436. X    $(STRIP) $(UTREE)
  2437. X
  2438. utree.prlist:   $(UTPRL)
  2439. X
  2440. X# Compile and link utree
  2441. X$(UTREE):       $(OBJS)
  2442. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2443. X
  2444. X# Compile and link utree.prlist
  2445. X$(UTPRL):       utree.prlist.c
  2446. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2447. X
  2448. X# Clean up
  2449. clean:
  2450. X    rm -f core *.o
  2451. X
  2452. X# --------------------------------------------------------------------- #
  2453. X
  2454. X$(OBJS):        $(DEFS)
  2455. X    $(CC) $(CFLAGS) -c $<
  2456. X
  2457. X# --------------------------------------------------------------------- #
  2458. X
  2459. END_OF_FILE
  2460. if test 1735 -ne `wc -c <'sys/Makefile.VAX'`; then
  2461.     echo shar: \"'sys/Makefile.VAX'\" unpacked with wrong size!
  2462. fi
  2463. # end of 'sys/Makefile.VAX'
  2464. fi
  2465. if test -f 'sys/Makefile.X23' -a "${1}" != "-c" ; then 
  2466.   echo shar: Will not clobber existing file \"'sys/Makefile.X23'\"
  2467. else
  2468. echo shar: Extracting \"'sys/Makefile.X23'\" \(1745 characters\)
  2469. sed "s/^X//" >'sys/Makefile.X23' <<'END_OF_FILE'
  2470. X#
  2471. X#       Makefile for UTREE
  2472. X#       klin, Mon Feb 24 00:02:38 1992
  2473. X#
  2474. X#       @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
  2475. X#
  2476. X#       Version: SCO XENIX SysV 2.3.2 386 GT
  2477. X
  2478. X# Compiler flags, loader flags and libraries
  2479. CFLAGS= -x2.3 -O -DXENIX
  2480. MFLAGS=
  2481. LFLAGS=
  2482. LIBS=   -ltermcap -ldir
  2483. MLIBS=
  2484. X# Additional local libraries
  2485. LLIBS=
  2486. X
  2487. X# --------------------------------------------------------------------- #
  2488. X
  2489. X# Some needed commands to create utree
  2490. CC=     cc
  2491. CP=     cp
  2492. STRIP=  strip
  2493. X
  2494. X# --------------------------------------------------------------------- #
  2495. X
  2496. X# Utree executables
  2497. UTREE=  ../bin/utree
  2498. UTPRL=  ../bin/utree.prlist
  2499. X
  2500. X# --------------------------------------------------------------------- #
  2501. X
  2502. X# Utree header files
  2503. DEFS=   conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
  2504. X
  2505. X# Utree sources and objects
  2506. SRCS=   main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
  2507. X    stat.c term.c tree.c util.c vars.c vers.c
  2508. OBJS=   main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
  2509. X    stat.o term.o tree.o util.o vars.o vers.o
  2510. X
  2511. X# --------------------------------------------------------------------- #
  2512. X
  2513. all:    utree utree.prlist
  2514. X
  2515. utree:  $(UTREE)
  2516. X
  2517. strip:  $(UTREE)
  2518. X    $(CP) $(UTREE) $(UTREE)+sym
  2519. X    $(STRIP) $(UTREE)
  2520. X
  2521. utree.prlist:   $(UTPRL)
  2522. X
  2523. X# Compile and link utree
  2524. X$(UTREE):       $(OBJS)
  2525. X    $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
  2526. X
  2527. X# Compile and link utree.prlist
  2528. X$(UTPRL):       utree.prlist.c
  2529. X    $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
  2530. X
  2531. X# Clean up
  2532. clean:
  2533. X    rm -f core *.o
  2534. X
  2535. X# --------------------------------------------------------------------- #
  2536. X
  2537. X$(OBJS):        $(DEFS)
  2538. X    $(CC) $(CFLAGS) -c $<
  2539. X
  2540. X# --------------------------------------------------------------------- #
  2541. X
  2542. END_OF_FILE
  2543. if test 1745 -ne `wc -c <'sys/Makefile.X23'`; then
  2544.     echo shar: \"'sys/Makefile.X23'\" unpacked with wrong size!
  2545. fi
  2546. # end of 'sys/Makefile.X23'
  2547. fi
  2548. if test -f 'sys/conf.h.BSD' -a "${1}" != "-c" ; then 
  2549.   echo shar: Will not clobber existing file \"'sys/conf.h.BSD'\"
  2550. else
  2551. echo shar: Extracting \"'sys/conf.h.BSD'\" \(2340 characters\)
  2552. sed "s/^X//" >'sys/conf.h.BSD' <<'END_OF_FILE'
  2553. X/*
  2554. X *      CONF.H
  2555. X *      UTREE system dependent configurable definitions.
  2556. X *      3.03-um klin, Sat Feb 15 19:23:58 1992
  2557. X *
  2558. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  2559. X *      For copying and distribution information see the file COPYRIGHT.
  2560. X *
  2561. X *      Version:        Generic BSD4.2/BSD4.3
  2562. X */
  2563. X#if     defined(_MAIN_) && !defined(lint)
  2564. static char sccsid_conf[] = "@(#) utree 3.03-um (klin) Feb 15 1992 conf.h";
  2565. X#endif  /* _MAIN_ && !lint */
  2566. X
  2567. X/*
  2568. X *      This file contains definitions you can change for your needs.
  2569. X */
  2570. X
  2571. X/*
  2572. X *      SOME UTREE DEPENDENT DEFINITIONS.
  2573. X */
  2574. X
  2575. X/* BSD: define HASVSPRINTF if your system supports vsprintf(3)          */
  2576. X#define HASVSPRINTF             /* Not needed for SYSV!                 */
  2577. X
  2578. X/* SYSV: define HASFIONREAD if your system supports the FIONREAD        */
  2579. X/*       ioctl(2) system call to check how many chars are typed ahead   */
  2580. X/*#define HASFIONREAD             /* Not needed for BSD!                  */
  2581. X
  2582. X/* SYSV: define HASVFORK if your system supports vfork(2)               */
  2583. X/*#define HASVFORK                /* Not needed for BSD!                  */
  2584. X
  2585. X/* SYSV: define NODIRENT if your system not supports the directory type */
  2586. X/*       struct dirent with opendir(3), closedir(3) and readdir(3)      */
  2587. X/*#define NODIRENT                /* Needed only for older SYSVs          */
  2588. X
  2589. X/* ALL: define NOWINCHG to ignore sreen resizing on window systems. The */
  2590. X/*      handling of screen resizing is intended as a little bit support */
  2591. X/*      for window systems like X, but it may not run on your system.   */
  2592. X/*      ATTENTION: Resizing may be confusing for utree anyway!          */
  2593. X/*#define NOWINCHG                /* No screen resizing allowed           */
  2594. X
  2595. X/* ALL: define STRUCTCOPY if your compiler doesn't support assignment   */
  2596. X/*      of struct variables, i.e. t[o] = f[rom].                        */
  2597. X/*#define STRUCTCOPY(f, t) memcpy(t, f, sizeof(f))        /* For SYSV     */
  2598. X/*#define STRUCTCOPY(f, t) bcopy(f, t, sizeof(f))         /* For BSD      */
  2599. X
  2600. X/* ALL: define UTCLOCK for a clock updated in echo line every second    */
  2601. X#define UTCLOCK                 /* Show/update clock                    */
  2602. X
  2603. X/* ALL: directory for utree startup file and help pages                 */
  2604. X#ifndef UTLIB
  2605. X# define UTLIB "/usr/local/lib"
  2606. X#endif  /* !UTLIB */
  2607. X
  2608. END_OF_FILE
  2609. if test 2340 -ne `wc -c <'sys/conf.h.BSD'`; then
  2610.     echo shar: \"'sys/conf.h.BSD'\" unpacked with wrong size!
  2611. fi
  2612. # end of 'sys/conf.h.BSD'
  2613. fi
  2614. if test -f 'sys/conf.h.CON' -a "${1}" != "-c" ; then 
  2615.   echo shar: Will not clobber existing file \"'sys/conf.h.CON'\"
  2616. else
  2617. echo shar: Extracting \"'sys/conf.h.CON'\" \(2344 characters\)
  2618. sed "s/^X//" >'sys/conf.h.CON' <<'END_OF_FILE'
  2619. X/*
  2620. X *      CONF.H
  2621. X *      UTREE system dependent configurable definitions.
  2622. X *      3.03-um klin, Sat Feb 15 19:23:58 1992
  2623. X *
  2624. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  2625. X *      For copying and distribution information see the file COPYRIGHT.
  2626. X *
  2627. X *      Version:        Convex C120, ConvexOS 8.1
  2628. X */
  2629. X#if     defined(_MAIN_) && !defined(lint)
  2630. static char sccsid_conf[] = "@(#) utree 3.03-um (klin) Feb 15 1992 conf.h";
  2631. X#endif  /* _MAIN_ && !lint */
  2632. X
  2633. X/*
  2634. X *      This file contains definitions you can change for your needs.
  2635. X */
  2636. X
  2637. X/*
  2638. X *      SOME UTREE DEPENDENT DEFINITIONS.
  2639. X */
  2640. X
  2641. X/* BSD: define HASVSPRINTF if your system supports vsprintf(3)          */
  2642. X#define HASVSPRINTF             /* Not needed for SYSV!                 */
  2643. X
  2644. X/* SYSV: define HASFIONREAD if your system supports the FIONREAD        */
  2645. X/*       ioctl(2) system call to check how many chars are typed ahead   */
  2646. X/*#define HASFIONREAD             /* Not needed for BSD!                  */
  2647. X
  2648. X/* SYSV: define HASVFORK if your system supports vfork(2)               */
  2649. X/*#define HASVFORK                /* Not needed for BSD!                  */
  2650. X
  2651. X/* SYSV: define NODIRENT if your system not supports the directory type */
  2652. X/*       struct dirent with opendir(3), closedir(3) and readdir(3)      */
  2653. X/*#define NODIRENT                /* Needed only for older SYSVs          */
  2654. X
  2655. X/* ALL: define NOWINCHG to ignore sreen resizing on window systems. The */
  2656. X/*      handling of screen resizing is intended as a little bit support */
  2657. X/*      for window systems like X, but it may not run on your system.   */
  2658. X/*      ATTENTION: Resizing may be confusing for utree anyway!          */
  2659. X/*#define NOWINCHG                /* No screen resizing allowed           */
  2660. X
  2661. X/* ALL: define STRUCTCOPY if your compiler doesn't support assignment   */
  2662. X/*      of struct variables, i.e. t[o] = f[rom].                        */
  2663. X/*#define STRUCTCOPY(f, t) memcpy(t, f, sizeof(f))        /* For SYSV     */
  2664. X/*#define STRUCTCOPY(f, t) bcopy(f, t, sizeof(f))         /* For BSD      */
  2665. X
  2666. X/* ALL: define UTCLOCK for a clock updated in echo line every second    */
  2667. X#define UTCLOCK                 /* Show/update clock                    */
  2668. X
  2669. X/* ALL: directory for utree startup file and help pages                 */
  2670. X#ifndef UTLIB
  2671. X# define UTLIB "/usr/local/lib"
  2672. X#endif  /* !UTLIB */
  2673. X
  2674. END_OF_FILE
  2675. if test 2344 -ne `wc -c <'sys/conf.h.CON'`; then
  2676.     echo shar: \"'sys/conf.h.CON'\" unpacked with wrong size!
  2677. fi
  2678. # end of 'sys/conf.h.CON'
  2679. fi
  2680. if test -f 'sys/conf.h.SUN' -a "${1}" != "-c" ; then 
  2681.   echo shar: Will not clobber existing file \"'sys/conf.h.SUN'\"
  2682. else
  2683. echo shar: Extracting \"'sys/conf.h.SUN'\" \(2343 characters\)
  2684. sed "s/^X//" >'sys/conf.h.SUN' <<'END_OF_FILE'
  2685. X/*
  2686. X *      CONF.H
  2687. X *      UTREE system dependent configurable definitions.
  2688. X *      3.03-um klin, Sat Feb 15 19:23:58 1992
  2689. X *
  2690. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  2691. X *      For copying and distribution information see the file COPYRIGHT.
  2692. X *
  2693. X *      Version:        SUN4 (SPARC) SunOs 4.1.x
  2694. X */
  2695. X#if     defined(_MAIN_) && !defined(lint)
  2696. static char sccsid_conf[] = "@(#) utree 3.03-um (klin) Feb 15 1992 conf.h";
  2697. X#endif  /* _MAIN_ && !lint */
  2698. X
  2699. X/*
  2700. X *      This file contains definitions you can change for your needs.
  2701. X */
  2702. X
  2703. X/*
  2704. X *      SOME UTREE DEPENDENT DEFINITIONS.
  2705. X */
  2706. X
  2707. X/* BSD: define HASVSPRINTF if your system supports vsprintf(3)          */
  2708. X#define HASVSPRINTF             /* Not needed for SYSV!                 */
  2709. X
  2710. X/* SYSV: define HASFIONREAD if your system supports the FIONREAD        */
  2711. X/*       ioctl(2) system call to check how many chars are typed ahead   */
  2712. X/*#define HASFIONREAD             /* Not needed for BSD!                  */
  2713. X
  2714. X/* SYSV: define HASVFORK if your system supports vfork(2)               */
  2715. X/*#define HASVFORK                /* Not needed for BSD!                  */
  2716. X
  2717. X/* SYSV: define NODIRENT if your system not supports the directory type */
  2718. X/*       struct dirent with opendir(3), closedir(3) and readdir(3)      */
  2719. X/*#define NODIRENT                /* Needed only for older SYSVs          */
  2720. X
  2721. X/* ALL: define NOWINCHG to ignore sreen resizing on window systems. The */
  2722. X/*      handling of screen resizing is intended as a little bit support */
  2723. X/*      for window systems like X, but it may not run on your system.   */
  2724. X/*      ATTENTION: Resizing may be confusing for utree anyway!          */
  2725. X/*#define NOWINCHG                /* No screen resizing allowed           */
  2726. X
  2727. X/* ALL: define STRUCTCOPY if your compiler doesn't support assignment   */
  2728. X/*      of struct variables, i.e. t[o] = f[rom].                        */
  2729. X/*#define STRUCTCOPY(f, t) memcpy(t, f, sizeof(f))        /* For SYSV     */
  2730. X/*#define STRUCTCOPY(f, t) bcopy(f, t, sizeof(f))         /* For BSD      */
  2731. X
  2732. X/* ALL: define UTCLOCK for a clock updated in echo line every second    */
  2733. X#define UTCLOCK                 /* Show/update clock                    */
  2734. X
  2735. X/* ALL: directory for utree startup file and help pages                 */
  2736. X#ifndef UTLIB
  2737. X# define UTLIB "/usr/local/lib"
  2738. X#endif  /* !UTLIB */
  2739. X
  2740. END_OF_FILE
  2741. if test 2343 -ne `wc -c <'sys/conf.h.SUN'`; then
  2742.     echo shar: \"'sys/conf.h.SUN'\" unpacked with wrong size!
  2743. fi
  2744. # end of 'sys/conf.h.SUN'
  2745. fi
  2746. if test -f 'sys/conf.h.V.2' -a "${1}" != "-c" ; then 
  2747.   echo shar: Will not clobber existing file \"'sys/conf.h.V.2'\"
  2748. else
  2749. echo shar: Extracting \"'sys/conf.h.V.2'\" \(2341 characters\)
  2750. sed "s/^X//" >'sys/conf.h.V.2' <<'END_OF_FILE'
  2751. X/*
  2752. X *      CONF.H
  2753. X *      UTREE system dependent configurable definitions.
  2754. X *      3.03-um klin, Sat Feb 15 19:23:58 1992
  2755. X *
  2756. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  2757. X *      For copying and distribution information see the file COPYRIGHT.
  2758. X *
  2759. X *      Version:        Generic for System V.2
  2760. X */
  2761. X#if     defined(_MAIN_) && !defined(lint)
  2762. static char sccsid_conf[] = "@(#) utree 3.03-um (klin) Feb 15 1992 conf.h";
  2763. X#endif  /* _MAIN_ && !lint */
  2764. X
  2765. X/*
  2766. X *      This file contains definitions you can change for your needs.
  2767. X */
  2768. X
  2769. X/*
  2770. X *      SOME UTREE DEPENDENT DEFINITIONS.
  2771. X */
  2772. X
  2773. X/* BSD: define HASVSPRINTF if your system supports vsprintf(3)          */
  2774. X/*#define HASVSPRINTF             /* Not needed for SYSV!                 */
  2775. X
  2776. X/* SYSV: define HASFIONREAD if your system supports the FIONREAD        */
  2777. X/*       ioctl(2) system call to check how many chars are typed ahead   */
  2778. X/*#define HASFIONREAD             /* Not needed for BSD!                  */
  2779. X
  2780. X/* SYSV: define HASVFORK if your system supports vfork(2)               */
  2781. X/*#define HASVFORK                /* Not needed for BSD!                  */
  2782. X
  2783. X/* SYSV: define NODIRENT if your system not supports the directory type */
  2784. X/*       struct dirent with opendir(3), closedir(3) and readdir(3)      */
  2785. X/*#define NODIRENT                /* Needed only for older SYSVs          */
  2786. X
  2787. X/* ALL: define NOWINCHG to ignore sreen resizing on window systems. The */
  2788. X/*      handling of screen resizing is intended as a little bit support */
  2789. X/*      for window systems like X, but it may not run on your system.   */
  2790. X/*      ATTENTION: Resizing may be confusing for utree anyway!          */
  2791. X#define NOWINCHG                /* No screen resizing allowed           */
  2792. X
  2793. X/* ALL: define STRUCTCOPY if your compiler doesn't support assignment   */
  2794. X/*      of struct variables, i.e. t[o] = f[rom].                        */
  2795. X/*#define STRUCTCOPY(f, t) memcpy(t, f, sizeof(f))        /* For SYSV     */
  2796. X/*#define STRUCTCOPY(f, t) bcopy(f, t, sizeof(f))         /* For BSD      */
  2797. X
  2798. X/* ALL: define UTCLOCK for a clock updated in echo line every second    */
  2799. X#define UTCLOCK                 /* Show/update clock                    */
  2800. X
  2801. X/* ALL: directory for utree startup file and help pages                 */
  2802. X#ifndef UTLIB
  2803. X# define UTLIB "/usr/local/lib"
  2804. X#endif  /* !UTLIB */
  2805. X
  2806. END_OF_FILE
  2807. if test 2341 -ne `wc -c <'sys/conf.h.V.2'`; then
  2808.     echo shar: \"'sys/conf.h.V.2'\" unpacked with wrong size!
  2809. fi
  2810. # end of 'sys/conf.h.V.2'
  2811. fi
  2812. if test -f 'sys/conf.h.V.3' -a "${1}" != "-c" ; then 
  2813.   echo shar: Will not clobber existing file \"'sys/conf.h.V.3'\"
  2814. else
  2815. echo shar: Extracting \"'sys/conf.h.V.3'\" \(2341 characters\)
  2816. sed "s/^X//" >'sys/conf.h.V.3' <<'END_OF_FILE'
  2817. X/*
  2818. X *      CONF.H
  2819. X *      UTREE system dependent configurable definitions.
  2820. X *      3.03-um klin, Sat Feb 15 19:23:58 1992
  2821. X *
  2822. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  2823. X *      For copying and distribution information see the file COPYRIGHT.
  2824. X *
  2825. X *      Version:        Generic for System V.3
  2826. X */
  2827. X#if     defined(_MAIN_) && !defined(lint)
  2828. static char sccsid_conf[] = "@(#) utree 3.03-um (klin) Feb 15 1992 conf.h";
  2829. X#endif  /* _MAIN_ && !lint */
  2830. X
  2831. X/*
  2832. X *      This file contains definitions you can change for your needs.
  2833. X */
  2834. X
  2835. X/*
  2836. X *      SOME UTREE DEPENDENT DEFINITIONS.
  2837. X */
  2838. X
  2839. X/* BSD: define HASVSPRINTF if your system supports vsprintf(3)          */
  2840. X/*#define HASVSPRINTF             /* Not needed for SYSV!                 */
  2841. X
  2842. X/* SYSV: define HASFIONREAD if your system supports the FIONREAD        */
  2843. X/*       ioctl(2) system call to check how many chars are typed ahead   */
  2844. X/*#define HASFIONREAD             /* Not needed for BSD!                  */
  2845. X
  2846. X/* SYSV: define HASVFORK if your system supports vfork(2)               */
  2847. X/*#define HASVFORK                /* Not needed for BSD!                  */
  2848. X
  2849. X/* SYSV: define NODIRENT if your system not supports the directory type */
  2850. X/*       struct dirent with opendir(3), closedir(3) and readdir(3)      */
  2851. X/*#define NODIRENT                /* Needed only for older SYSVs          */
  2852. X
  2853. X/* ALL: define NOWINCHG to ignore sreen resizing on window systems. The */
  2854. X/*      handling of screen resizing is intended as a little bit support */
  2855. X/*      for window systems like X, but it may not run on your system.   */
  2856. X/*      ATTENTION: Resizing may be confusing for utree anyway!          */
  2857. X#define NOWINCHG                /* No screen resizing allowed           */
  2858. X
  2859. X/* ALL: define STRUCTCOPY if your compiler doesn't support assignment   */
  2860. X/*      of struct variables, i.e. t[o] = f[rom].                        */
  2861. X/*#define STRUCTCOPY(f, t) memcpy(t, f, sizeof(f))        /* For SYSV     */
  2862. X/*#define STRUCTCOPY(f, t) bcopy(f, t, sizeof(f))         /* For BSD      */
  2863. X
  2864. X/* ALL: define UTCLOCK for a clock updated in echo line every second    */
  2865. X#define UTCLOCK                 /* Show/update clock                    */
  2866. X
  2867. X/* ALL: directory for utree startup file and help pages                 */
  2868. X#ifndef UTLIB
  2869. X# define UTLIB "/usr/local/lib"
  2870. X#endif  /* !UTLIB */
  2871. X
  2872. END_OF_FILE
  2873. if test 2341 -ne `wc -c <'sys/conf.h.V.3'`; then
  2874.     echo shar: \"'sys/conf.h.V.3'\" unpacked with wrong size!
  2875. fi
  2876. # end of 'sys/conf.h.V.3'
  2877. fi
  2878. if test -f 'sys/conf.h.VAX' -a "${1}" != "-c" ; then 
  2879.   echo shar: Will not clobber existing file \"'sys/conf.h.VAX'\"
  2880. else
  2881. echo shar: Extracting \"'sys/conf.h.VAX'\" \(2339 characters\)
  2882. sed "s/^X//" >'sys/conf.h.VAX' <<'END_OF_FILE'
  2883. X/*
  2884. X *      CONF.H
  2885. X *      UTREE system dependent configurable definitions.
  2886. X *      3.03-um klin, Sat Feb 15 19:23:58 1992
  2887. X *
  2888. X *      Copyright (c) 1991/92 by Peter Klingebiel & UNIX Magazin Muenchen.
  2889. X *      For copying and distribution information see the file COPYRIGHT.
  2890. X *
  2891. X *      Version:        DEC VAX/750 BSD4.3
  2892. X */
  2893. X#if     defined(_MAIN_) && !defined(lint)
  2894. static char sccsid_conf[] = "@(#) utree 3.03-um (klin) Feb 15 1992 conf.h";
  2895. X#endif  /* _MAIN_ && !lint */
  2896. X
  2897. X/*
  2898. X *      This file contains definitions you can change for your needs.
  2899. X */
  2900. X
  2901. X/*
  2902. X *      SOME UTREE DEPENDENT DEFINITIONS.
  2903. X */
  2904. X
  2905. X/* BSD: define HASVSPRINTF if your system supports vsprintf(3)          */
  2906. X/*#define HASVSPRINTF             /* Not needed for SYSV!                 */
  2907. X
  2908. X/* SYSV: define HASFIONREAD if your system supports the FIONREAD        */
  2909. X/*       ioctl(2) system call to check how many chars are typed ahead   */
  2910. X/*#define HASFIONREAD             /* Not needed for BSD!                  */
  2911. X
  2912. X/* SYSV: define HASVFORK if your system supports vfork(2)               */
  2913. X/*#define HASVFORK                /* Not needed for BSD!                  */
  2914. X
  2915. X/* SYSV: define NODIRENT if your system not supports the directory type */
  2916. X/*       struct dirent with opendir(3), closedir(3) and readdir(3)      */
  2917. X/*#define NODIRENT                /* Needed only for older SYSVs          */
  2918. X
  2919. X/* ALL: define NOWINCHG to ignore sreen resizing on window systems. The */
  2920. X/*      handling of screen resizing is intended as a little bit support */
  2921. X/*      for window systems like X, but it may not run on your system.   */
  2922. X/*      ATTENTION: Resizing may be confusing for utree anyway!          */
  2923. X/*#define NOWINCHG                /* No screen resizing allowed           */
  2924. X
  2925. X/* ALL: define STRUCTCOPY if your compiler doesn't support assignment   */
  2926. X/*      of struct variables, i.e. t[o] = f[rom].                        */
  2927. X/*#define STRUCTCOPY(f, t) memcpy(t, f, sizeof(f))        /* For SYSV     */
  2928. X/*#define STRUCTCOPY(f, t) bcopy(f, t, sizeof(f))         /* For BSD      */
  2929. X
  2930. X/* ALL: define UTCLOCK for a clock updated in echo line every second    */
  2931. X#define UTCLOCK                 /* Show/update clock                    */
  2932. X
  2933. X/* ALL: directory for utree startup file and help pages                 */
  2934. X#ifndef UTLIB
  2935. X# define UTLIB "/usr/local/lib"
  2936. X#endif  /* !UTLIB */
  2937. X
  2938. END_OF_FILE
  2939. if test 2339 -ne `wc -c <'sys/conf.h.VAX'`; then
  2940.     echo shar: \"'sys/conf.h.VAX'\" unpacked with wrong size!
  2941. fi
  2942. # end of 'sys/conf.h.VAX'
  2943. fi
  2944. if test ! -d 'tst' ; then
  2945.     echo shar: Creating directory \"'tst'\"
  2946.     mkdir 'tst'
  2947. fi
  2948. if test -f 'tst/fionread.c' -a "${1}" != "-c" ; then 
  2949.   echo shar: Will not clobber existing file \"'tst/fionread.c'\"
  2950. else
  2951. echo shar: Extracting \"'tst/fionread.c'\" \(1207 characters\)
  2952. sed "s/^X//" >'tst/fionread.c' <<'END_OF_FILE'
  2953. X/*
  2954. X *      FIONREAD.C
  2955. X *      Test the FIONREAD ioctl system call
  2956. X *      klin, Mon Feb 24 20:29:50 1992
  2957. X *
  2958. X *      Defs:   Define BSD for BSD systems.
  2959. X *      Test:   Enter some chars (don't forget <RETURN> !)
  2960. X *              and see the result from ioctl(FIONREAD).
  2961. X *              If some characters were entered, there should be
  2962. X *              displayed a message with the number of entered chars
  2963. X *              and the entered string!
  2964. X */
  2965. X
  2966. X#include <stdio.h>
  2967. X#ifndef BSD
  2968. X#include <sys/termio.h>         /* FIONREAD may be defined here */
  2969. X#endif
  2970. X#include <sys/ioctl.h>          /*          or here (like BSD)  */
  2971. X
  2972. X/*
  2973. X *      Main routine
  2974. X */
  2975. main()
  2976. X{
  2977. X  char buf[256];
  2978. X  int rv, nc;
  2979. X
  2980. X  /* Terminate with BREAK ! */
  2981. X  while(1) {
  2982. X    printf("\nWAITING FOR INPUT ...\n");
  2983. X    fflush(stdout);
  2984. X    /* Wait 5 seconds for entering input */
  2985. X    sleep(5);
  2986. X    rv = ioctl(0, FIONREAD, &nc);
  2987. X    printf("\nIOCTL(FIONREAD) rv=%d nc=%d ", rv, nc);
  2988. X    /* OK: chars read! */
  2989. X    if(nc > 0) {
  2990. X      /* Fill and display read characters */
  2991. X      gets(buf);
  2992. X      printf("buf=[%s]\n", buf);
  2993. X    }
  2994. X    else
  2995. X      /* Should not happen on input if ioctl(FIONREAD) works! */
  2996. X      printf("NO INPUT\n");
  2997. X  }
  2998. X
  2999. X} /* main() */
  3000. X
  3001. END_OF_FILE
  3002. if test 1207 -ne `wc -c <'tst/fionread.c'`; then
  3003.     echo shar: \"'tst/fionread.c'\" unpacked with wrong size!
  3004. fi
  3005. # end of 'tst/fionread.c'
  3006. fi
  3007. if test -f 'tst/sigwinch.c' -a "${1}" != "-c" ; then 
  3008.   echo shar: Will not clobber existing file \"'tst/sigwinch.c'\"
  3009. else
  3010. echo shar: Extracting \"'tst/sigwinch.c'\" \(1159 characters\)
  3011. sed "s/^X//" >'tst/sigwinch.c' <<'END_OF_FILE'
  3012. X/*
  3013. X *      SIGWINCH.C
  3014. X *      Test signal SIGWINCH and TIOCGWINSZ ioctl system call
  3015. X *      klin, Mon Feb 24 20:35:53 1992
  3016. X *
  3017. X *      Defs:   Define BSD for BSD systems.
  3018. X *      Test:   Start sigwinch under X in a xterm window and resize
  3019. X *              the window sometimes. After resizing there should be
  3020. X *              sent a signal SIGWINCH from the kernel which is catched
  3021. X *              by the sigwinch signal handler. The ioctl(TIOCGWINSZ)
  3022. X *              systemcalls should return the new size of the window.
  3023. X */
  3024. X
  3025. X#include <stdio.h>
  3026. X#include <signal.h>
  3027. X#include <sys/types.h>
  3028. X#ifndef BSD
  3029. X#include <sys/termio.h>         /* struct winsize may be defined here */
  3030. X#endif
  3031. X#include <sys/ioctl.h>          /*                or here (like BSD)  */
  3032. X
  3033. X/*
  3034. X *      Signal handler for signal SIGWINCH
  3035. X */
  3036. sigwinch(sig)
  3037. X  int sig;
  3038. X{
  3039. X  struct winsize ws;
  3040. X  int rv;
  3041. X
  3042. X  signal(SIGWINCH, sigwinch);
  3043. X  if(sig)
  3044. X    printf("SIGWINCH-HANDLER: sig=%d\n", sig);
  3045. X  rv = ioctl(0, TIOCGWINSZ, &ws);
  3046. X  printf("IOCTL: rv=%d rows=%d cols=%d\n", rv, ws.ws_row, ws.ws_col);
  3047. X
  3048. X} /* sigwinch() */
  3049. X
  3050. X/*
  3051. X *      Main routine
  3052. X */
  3053. main()
  3054. X{
  3055. X  sigwinch(0);
  3056. X  while(1)
  3057. X    ;
  3058. X
  3059. X} /* main() */
  3060. X
  3061. END_OF_FILE
  3062. if test 1159 -ne `wc -c <'tst/sigwinch.c'`; then
  3063.     echo shar: \"'tst/sigwinch.c'\" unpacked with wrong size!
  3064. fi
  3065. # end of 'tst/sigwinch.c'
  3066. fi
  3067. echo shar: End of archive 1 \(of 8\).
  3068. cp /dev/null ark1isdone
  3069. MISSING=""
  3070. for I in 1 2 3 4 5 6 7 8 ; do
  3071.     if test ! -f ark${I}isdone ; then
  3072.     MISSING="${MISSING} ${I}"
  3073.     fi
  3074. done
  3075. if test "${MISSING}" = "" ; then
  3076.     echo You have unpacked all 8 archives.
  3077.     rm -f ark[1-9]isdone
  3078. else
  3079.     echo You still need to unpack the following archives:
  3080.     echo "        " ${MISSING}
  3081. fi
  3082. ##  End of shell archive.
  3083. exit 0
  3084.