home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / unix / volume26 / utree / part01 < prev    next >
Encoding:
Text File  |  1992-09-06  |  97.1 KB  |  3,078 lines

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