home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / x / volume13 / xdtm / part01 next >
Internet Message Format  |  1991-05-18  |  43KB

  1. Path: uunet!cs.utexas.edu!sun-barr!newstop!exodus!cogs.sussex.ac.uk
  2. From: eddyg@cogs.sussex.ac.uk (EdwardJ. Groenendaal)
  3. Newsgroups: comp.sources.x
  4. Subject: v13i006: xdtm - X Desktop Manager for the X Window System, Part01/11
  5. Message-ID: <csx-13i006:xdtm@uunet.UU.NET>
  6. Date: 19 May 91 00:02:35 GMT
  7. Sender: news@exodus.Eng.Sun.COM
  8. Lines: 1285
  9. Approved: argv@sun.com
  10.  
  11. Submitted-by: Edward "J." Groenendaal <eddyg@cogs.sussex.ac.uk>
  12. Posting-number: Volume 13, Issue 6
  13. Archive-name: xdtm/part01
  14.  
  15. This is version 1.5 of the X Desktop Manager for the X Window System. It
  16. is designed as a graphical replacement to the command-line orientated UNIX
  17. shell. See the help file for a full list of features and how to use them.
  18.  
  19.  
  20. ---- Cut Here and feed the following to sh ----
  21. #!/bin/sh
  22. # This is xdtm, a shell archive (produced by shar 3.49)
  23. # To extract the files from this archive, save it to a file, remove
  24. # everything above the "!/bin/sh" line above, and type "sh file_name".
  25. #
  26. # made 05/10/1991 16:53 UTC by eddyg@cste
  27. # Source directory /tsuna/home/ug/cs88/eddyg/usr/xdtm_release_1.5
  28. #
  29. # existing files will NOT be overwritten unless -c is specified
  30. #
  31. # This shar contains:
  32. # length  mode       name
  33. # ------ ---------- ------------------------------------------
  34. #   3353 -rw-r--r-- xdtm/README
  35. #   3015 -rw-r--r-- xdtm/Imakefile
  36. #  14290 -rw-r--r-- xdtm/Makefile
  37. #   1921 -rw-r--r-- xdtm/Wishes
  38. #    559 -rw-r--r-- xdtm/Xdtm
  39. #    933 -rw-r--r-- xdtm/Xedw/DefIcon.icon
  40. #    150 -rw-r--r-- xdtm/Xedw/Imakefile
  41. #   8234 -rw-r--r-- xdtm/Xedw/Makefile
  42. #  18923 -rw-r--r-- xdtm/Xedw/XedwForm.c
  43. #   3912 -rw-r--r-- xdtm/Xedw/XedwForm.h
  44. #   4040 -rw-r--r-- xdtm/Xedw/XedwFormP.h
  45. #  38223 -rw-r--r-- xdtm/Xedw/XedwList.c
  46. #   8356 -rw-r--r-- xdtm/Xedw/XedwList.h
  47. #   4117 -rw-r--r-- xdtm/Xedw/XedwListP.h
  48. #  31645 -rw-r--r-- xdtm/appman.c
  49. #   1076 -rw-r--r-- xdtm/bitmaps/Copy.Button
  50. #    496 -rw-r--r-- xdtm/bitmaps/Copy.Cursor
  51. #    452 -rw-r--r-- xdtm/bitmaps/Copy.Mask
  52. #    266 -rw-r--r-- xdtm/bitmaps/EmptyTick
  53. #    875 -rw-r--r-- xdtm/bitmaps/Grey.Mask
  54. #   1076 -rw-r--r-- xdtm/bitmaps/Move.Button
  55. #    496 -rw-r--r-- xdtm/bitmaps/Move.Cursor
  56. #    452 -rw-r--r-- xdtm/bitmaps/Move.Mask
  57. #    251 -rw-r--r-- xdtm/bitmaps/Tick
  58. #   1079 -rw-r--r-- xdtm/bitmaps/Trash.Button
  59. #    875 -rw-r--r-- xdtm/bitmaps/file.icon
  60. #    881 -rw-r--r-- xdtm/bitmaps/folder.icon
  61. #    998 -rw-r--r-- xdtm/bitmaps/xdtm.xbm
  62. #  10282 -rw-r--r-- xdtm/buttons.c
  63. #   3636 -rw-r--r-- xdtm/dialogs.c
  64. #  17893 -rw-r--r-- xdtm/dirman.c
  65. #  11820 -rw-r--r-- xdtm/display.c
  66. #    637 -rw-r--r-- xdtm/docs/README
  67. #   9280 -rw-r--r-- xdtm/fileman.c
  68. #  20446 -rw-r--r-- xdtm/help
  69. #   1005 -rw-r--r-- xdtm/icons/alix/airballoon.icon
  70. #    990 -rw-r--r-- xdtm/icons/alix/alien.icon
  71. #    990 -rw-r--r-- xdtm/icons/alix/bat.icon
  72. #   1005 -rw-r--r-- xdtm/icons/alix/bear.icon
  73. #    993 -rw-r--r-- xdtm/icons/alix/candle.icon
  74. #    996 -rw-r--r-- xdtm/icons/alix/clock.icon
  75. #   1005 -rw-r--r-- xdtm/icons/alix/cup.icon
  76. #    993 -rw-r--r-- xdtm/icons/alix/dragon.icon
  77. #    996 -rw-r--r-- xdtm/icons/alix/emacs.icon
  78. #    993 -rw-r--r-- xdtm/icons/alix/fish.icon
  79. #    990 -rw-r--r-- xdtm/icons/alix/flower.icon
  80. #    990 -rw-r--r-- xdtm/icons/alix/ghost.icon
  81. #   1005 -rw-r--r-- xdtm/icons/alix/gun.icon
  82. #    999 -rw-r--r-- xdtm/icons/alix/hat.icon
  83. #   1005 -rw-r--r-- xdtm/icons/alix/hedgehog.icon
  84. #   1005 -rw-r--r-- xdtm/icons/alix/icecream.icon
  85. #   1005 -rw-r--r-- xdtm/icons/alix/mermaid.icon
  86. #   1005 -rw-r--r-- xdtm/icons/alix/monster.icon
  87. #    996 -rw-r--r-- xdtm/icons/alix/piccy.icon
  88. #    999 -rw-r--r-- xdtm/icons/alix/snail.icon
  89. #    999 -rw-r--r-- xdtm/icons/alix/wordc.icon
  90. #   1001 -rw-r--r-- xdtm/icons/eddy/block.icon
  91. #   1001 -rw-r--r-- xdtm/icons/eddy/ccode.icon
  92. #   1013 -rw-r--r-- xdtm/icons/eddy/character.icon
  93. #    998 -rw-r--r-- xdtm/icons/eddy/core.icon
  94. #   1004 -rw-r--r-- xdtm/icons/eddy/dotdot.icon
  95. #   1001 -rw-r--r-- xdtm/icons/eddy/elisp.icon
  96. #   1001 -rw-r--r-- xdtm/icons/eddy/elispc.icon
  97. #    998 -rw-r--r-- xdtm/icons/eddy/file.icon
  98. #   1004 -rw-r--r-- xdtm/icons/eddy/folder.icon
  99. #   1001 -rw-r--r-- xdtm/icons/eddy/hcode.icon
  100. #    998 -rw-r--r-- xdtm/icons/eddy/icon.icon
  101. #   1001 -rw-r--r-- xdtm/icons/eddy/lcode.icon
  102. #    995 -rw-r--r-- xdtm/icons/eddy/lib.icon
  103. #    875 -rw-r--r-- xdtm/icons/eddy/make.icon
  104. #   1010 -rw-r--r-- xdtm/icons/eddy/makefile.icon
  105. #   1007 -rw-r--r-- xdtm/icons/eddy/manpage.icon
  106. #   1001 -rw-r--r-- xdtm/icons/eddy/ocode.icon
  107. #    998 -rw-r--r-- xdtm/icons/eddy/prog.icon
  108. #   1001 -rw-r--r-- xdtm/icons/eddy/slink.icon
  109. #   1004 -rw-r--r-- xdtm/icons/eddy/socket.icon
  110. #    998 -rw-r--r-- xdtm/icons/eddy/text.icon
  111. #    995 -rw-r--r-- xdtm/icons/eddy/tty.icon
  112. #    989 -rw-r--r-- xdtm/icons/eddy/x.icon
  113. #    998 -rw-r--r-- xdtm/icons/eddy/xdtm.icon
  114. #   1001 -rw-r--r-- xdtm/icons/eddy/ycode.icon
  115. #   1027 -rw-r--r-- xdtm/icons/eddy/z.icon
  116. #   6783 -rw-r--r-- xdtm/lexical.l
  117. #  15389 -rw-r--r-- xdtm/listoption.c
  118. #   8048 -rw-r--r-- xdtm/main.c
  119. #   7904 -rw-r--r-- xdtm/map.c
  120. #  13682 -rw-r--r-- xdtm/menus.c
  121. #   1513 -rw-r--r-- xdtm/menus.h
  122. #   1385 -rw-r--r-- xdtm/mystrstr.c
  123. #   9922 -rw-r--r-- xdtm/newfile.c
  124. #  18463 -rw-r--r-- xdtm/parse.c
  125. #   2063 -rw-r--r-- xdtm/parse.h
  126. #  27319 -rw-r--r-- xdtm/parser.y
  127. #    219 -rw-r--r-- xdtm/patchlevel.h
  128. #   3727 -rw-r--r-- xdtm/quit.c
  129. #   1816 -rw-r--r-- xdtm/scroll_hack.c
  130. #   2222 -rw-r--r-- xdtm/xdtm.h
  131. #   2504 -rw-r--r-- xdtm/xdtm.man
  132. #   5773 -rw-r--r-- xdtm/xdtmrc
  133. #
  134. # ============= xdtm/README ==============
  135. if test ! -d 'xdtm'; then
  136.     echo 'x - creating directory xdtm'
  137.     mkdir 'xdtm'
  138. fi
  139. if test -f 'xdtm/README' -a X"$1" != X"-c"; then
  140.     echo 'x - skipping xdtm/README (File already exists)'
  141. else
  142. echo 'x - extracting xdtm/README (Text)'
  143. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/README' &&
  144. XX Desktop Manager Version 1.5
  145. X=============================
  146. X
  147. XThis is version 1.5 of the X Desktop Manager for the X Window System. It
  148. Xis designed as a graphical replacement to the command-line orientated 
  149. XUNIX shell. See the help file for a full list of features and how to use 
  150. Xthem.
  151. X
  152. XChanges from version 1.0 to 1.4:
  153. X
  154. X o Fixed the memory allocation bugs.
  155. X o Caught the dying children, so preventing zombies.
  156. X o Option to automatically refresh directory listing when a child dies.
  157. X o Added the facility to set the icon representing a file by the FULL set
  158. X   of file types. (e.g. socket, fifo, symbolic link, character special,
  159. X   block special device)
  160. X o Works properly of colour displays
  161. X o Option to follow symbolic links
  162. X o Can set a delay between a directory being modified by copy, move or 
  163. X   delete and the directory list being updated. This is so it will work
  164. X   properly with NFS.
  165. X o probably some more...
  166. X
  167. XChanges from version 1.4 to 1.5:
  168. X
  169. X o Now works on system 5 machines, thanks to Jean-Christophe Collet.
  170. X o Window manager display's an xdtm icon when xdtm iconified
  171. X
  172. XWorks on the following machines,
  173. X    Sun 3's and 4's with SunOS 4.*.*
  174. X    Macintosh II's with A/UX 2.*
  175. X    HP's (not sure which ones)
  176. X    And many others...
  177. X
  178. XWill not work on straight BSD systems, need the regexp.h header file.
  179. X    
  180. XThe program is supplied in a number of shell archives. These unpack to
  181. Xmake a single directory called 'xdtm' within which are the program sources, 
  182. Xthis README file, the help file, and loads of example icons. 
  183. X
  184. XUnpacking the archives.
  185. X-----------------------
  186. X
  187. XFirst of all copy the archives from the newsgroup of wherever you found
  188. Xthem into your source directory. 
  189. XThen remove the headers from each archive (up to the
  190. Xline #!/bin/sh) and execute each one seperately in sequence.
  191. X
  192. XCompiling the program.
  193. X----------------------
  194. X
  195. XTo compile and install the program you need to go through the following 
  196. Xstages,
  197. X
  198. X1) Edit the master Imakefile
  199. X    Read the Imakefile in the 'xdtm' directory, making changes where
  200. X    suggested for your machine.
  201. X
  202. X2) Make the Makefile's
  203. X    Either enter 'xmkmf' in the 'xdtm' directory, or enter
  204. X    'make Makefile' in the 'xdtm' directory to create a Makefile from
  205. X    the Imakefile. 
  206. X    To create the Makefile for the 'Xedw' widgets in the directory
  207. X    'xdtm/Xedw' enter 'make Makefiles' from within the 'xdtm' directory.
  208. X
  209. X3) Edit 'xdtm.h'
  210. X    Change the expected locations of the xdtm help and system config
  211. X    files to the places where you will install them.
  212. X
  213. X4) Compile the program
  214. X    Enter 'make xdtm' to compile the program, expect one or two warnings
  215. X    when compiling the system header file 'regexp.h'.
  216. X
  217. X5) Install the program
  218. X    The following files should be installed, 'help', 'xdtmrc', and
  219. X    the icons directory. To install these automatically enter
  220. X    'make install'.
  221. X
  222. X
  223. XAuthor
  224. X------
  225. X
  226. XEdward Groenendaal.
  227. X
  228. XSchool of Cognitive and Computing Sciences,
  229. XUniversity of Sussex, 
  230. XBrighton,
  231. XU.K.
  232. X
  233. XEmail: eddyg@cogs.sussex.ac.uk
  234. X
  235. XThe Word 4 format User's Guide and other xdtm related files are available
  236. Xfrom an info-server running from my account. To trigger the info-server
  237. Xinclude the string "-SUIS-" in the Subject line, in the body of the message
  238. Xinclude the request. 
  239. X
  240. XFor example,
  241. X
  242. X% mail eddyg@cogs.sussex.ac.uk
  243. XSubject: -SUIS-
  244. X
  245. XRequest: xdtm
  246. XTopic: help
  247. XTopic: index
  248. XRequest: end
  249. X
  250. Xwill mail you the info-server xdtm specific index and help file.
  251. SHAR_EOF
  252. chmod 0644 xdtm/README ||
  253. echo 'restore of xdtm/README failed'
  254. Wc_c="`wc -c < 'xdtm/README'`"
  255. test 3353 -eq "$Wc_c" ||
  256.     echo 'xdtm/README: original size 3353, current size' "$Wc_c"
  257. fi
  258. # ============= xdtm/Imakefile ==============
  259. if test -f 'xdtm/Imakefile' -a X"$1" != X"-c"; then
  260.     echo 'x - skipping xdtm/Imakefile (File already exists)'
  261. else
  262. echo 'x - extracting xdtm/Imakefile (Text)'
  263. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Imakefile' &&
  264. X/* Imakefile for the X Desktop Manager.
  265. X *
  266. X * Written by Edward Groenendaal. <eddyg@cogs.sussex.ac.uk>
  267. X * Modified by stolcke@ICSI.Berkeley.edu, 19 April 1991 and again
  268. X * on the 22 April to make better use of imake.
  269. X *
  270. X * To create a Makefile from this file, use the xmkmf script supplied
  271. X * with X11R4.
  272. X */
  273. X
  274. X/* If you use bison instead of yacc then define the symbol bison */
  275. X
  276. X/* #define bison */
  277. X
  278. X/**/# X Desktop Manager version 1.4
  279. X/**/# 
  280. X/**/# If make fails with a syntax error try expanding any tabs in this
  281. X/**/# file to spaces. (use the expand(1) utility)
  282. X/**/# If your machine has the strstr(3) string function then define the
  283. X/**/# symbol HAS_STRSTR otherwise my version of strstr will be used.
  284. X/**/# If your not sure then use mine.. you never know it might even
  285. X/**/# be as fast as the system version!!
  286. X/**/#
  287. X/**/# If your OS is true SYSV without BSD extensions, e.g. symbolic
  288. X/**/# links, then define the symbol TRUE_SYSV.
  289. X/**/#
  290. X/**/# If you prefer to use getcwd over getwd (SYSV machines) then
  291. X/**/# define USE_CWD. This is done automatically if TRUE_SYSV is
  292. X/**/# defined. 
  293. X
  294. X              CC = gcc /* -DHAS_STRSTR */ /* -DUSE_CWD */ /* -DTRUE_SYSV */
  295. X
  296. X     CDEBUGFLAGS =     /* put -g or -O here. On A/UX 2.01 with gcc 1.39 
  297. X                        * optimising breaks the program 
  298. X                        */
  299. X
  300. X            SRCS = main.c menus.c appman.c dirman.c \
  301. X                   fileman.c parse.c \
  302. X                   Xedw/XedwList.c Xedw/XedwForm.c lexical.l parser.y \
  303. X                   dialogs.c scroll_hack.c mystrstr.c buttons.c \
  304. X                   display.c listoption.c map.c newfile.c \
  305. X                   quit.c 
  306. X
  307. X            OBJS = main.o menus.o appman.o dirman.o \
  308. X                   fileman.o parse.o parser.o lexical.o \
  309. X                   dialogs.o scroll_hack.o mystrstr.o buttons.o \
  310. X                   display.o listoption.o map.o newfile.o \
  311. X                   quit.o 
  312. X         DEPLIBS = Xedw
  313. X LOCAL_LIBRARIES = -L Xedw -lXedw $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  314. X   SYS_LIBRARIES = -ll # -ly /* The yacc library doesn't seem to be needed */
  315. X
  316. X#ifdef bison
  317. X            YACC = bison
  318. X          YFLAGS = -yacc -d
  319. X#else
  320. X            YACC = yacc
  321. X          YFLAGS = -d
  322. X#endif
  323. X
  324. X
  325. X#define IHaveSubdirs
  326. X#define PassCDebugFlags 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 
  327. X
  328. X         SUBDIRS = Xedw
  329. X
  330. XComplexProgramTarget(xdtm)
  331. X
  332. XNormalProgramTarget(lexical, lexical.c,,,-DDEBUG_LEX)
  333. X
  334. XNormalProgramTarget(parser, lexical.c parser.c,,,-DDEBUG_YACC)
  335. X
  336. XNamedMakeSubdirs(Xedw, Xedw)
  337. X
  338. XMakeDirectories(install, $(LIBDIR)/xdtm)
  339. XInstallNonExec(help, $(LIBDIR)/xdtm)
  340. XInstallNonExec(xdtmrc, $(LIBDIR)/xdtm/xdtmrc)
  341. XMakeDirectories(install, $(LIBDIR)/xdtm/icons)
  342. X
  343. Xinstall::
  344. X        cp icons$(PATHSEP)*$(PATHSEP)*.icon $(LIBDIR)/xdtm/icons
  345. X
  346. Xetags:
  347. X        etags -t *.h $(SRCS)  
  348. X
  349. Xclean::
  350. X        $(RM) lexical.c parser.c parser.h *.tab.*
  351. X
  352. Xparser.c parser.h: parser.y         
  353. X        $(YACC) $(YFLAGS) parser.y      
  354. X        $(MV) y.tab.c parser.c          
  355. X        $(MV) y.tab.h parser.h      
  356. X
  357. Xlexical.o: parser.h
  358. X
  359. SHAR_EOF
  360. chmod 0644 xdtm/Imakefile ||
  361. echo 'restore of xdtm/Imakefile failed'
  362. Wc_c="`wc -c < 'xdtm/Imakefile'`"
  363. test 3015 -eq "$Wc_c" ||
  364.     echo 'xdtm/Imakefile: original size 3015, current size' "$Wc_c"
  365. fi
  366. # ============= xdtm/Makefile ==============
  367. if test -f 'xdtm/Makefile' -a X"$1" != X"-c"; then
  368.     echo 'x - skipping xdtm/Makefile (File already exists)'
  369. else
  370. echo 'x - extracting xdtm/Makefile (Text)'
  371. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Makefile' &&
  372. X# Makefile generated by imake - do not edit!
  373. X# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  374. X#
  375. X# The cpp used on this machine replaces all newlines and multiple tabs and
  376. X# spaces in a macro expansion with a single space.  Imake tries to compensate
  377. X# for this, but is not always successful.
  378. X#
  379. X
  380. X###########################################################################
  381. X# Makefile generated from "Imake.tmpl" and <Imakefile>
  382. X# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  383. X#
  384. X# Platform-specific parameters may be set in the appropriate .cf
  385. X# configuration files.  Site-wide parameters may be set in the file
  386. X# site.def.  Full rebuilds are recommended if any parameters are changed.
  387. X#
  388. X# If your C preprocessor doesn't define any unique symbols, you'll need
  389. X# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  390. X# "make Makefile", "make Makefiles", or "make World").
  391. X#
  392. X# If you absolutely can't get imake to work, you'll need to set the
  393. X# variables at the top of each Makefile as well as the dependencies at the
  394. X# bottom (makedepend will do this automatically).
  395. X#
  396. X
  397. X###########################################################################
  398. X# platform-specific configuration parameters - edit sun.cf to change
  399. X
  400. X# platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  401. X# operating system:  SunOS 4.1
  402. X
  403. X###########################################################################
  404. X# site-specific configuration parameters - edit site.def to change
  405. X
  406. X# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  407. X
  408. X            SHELL = /bin/sh
  409. X
  410. X              TOP = .
  411. X      CURRENT_DIR = .
  412. X
  413. X               AR = ar cq
  414. X  BOOTSTRAPCFLAGS =
  415. X               CC = cc
  416. X
  417. X         COMPRESS = compress
  418. X              CPP = /lib/cpp $(STD_CPP_DEFINES)
  419. X    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  420. X          INSTALL = install
  421. X               LD = ld
  422. X             LINT = lint
  423. X      LINTLIBFLAG = -C
  424. X         LINTOPTS = -axz
  425. X               LN = ln -s
  426. X             MAKE = make
  427. X               MV = mv
  428. X               CP = cp
  429. X           RANLIB = ranlib
  430. X  RANLIBINSTFLAGS =
  431. X               RM = rm -f
  432. X     STD_INCLUDES =
  433. X  STD_CPP_DEFINES =
  434. X      STD_DEFINES =
  435. X EXTRA_LOAD_FLAGS =
  436. X  EXTRA_LIBRARIES =
  437. X             TAGS = ctags
  438. X
  439. X    SHAREDCODEDEF = -DSHAREDCODE
  440. X         SHLIBDEF = -DSUNSHLIB
  441. X
  442. X    PROTO_DEFINES =
  443. X
  444. X     INSTPGMFLAGS =
  445. X
  446. X     INSTBINFLAGS = -m 0755
  447. X     INSTUIDFLAGS = -m 4755
  448. X     INSTLIBFLAGS = -m 0664
  449. X     INSTINCFLAGS = -m 0444
  450. X     INSTMANFLAGS = -m 0444
  451. X     INSTDATFLAGS = -m 0444
  452. X    INSTKMEMFLAGS = -m 4755
  453. X
  454. X          DESTDIR = /usr/local/X11R4
  455. X
  456. X     TOP_INCLUDES = -I$(INCROOT)
  457. X
  458. X      CDEBUGFLAGS = -O
  459. X        CCOPTIONS =
  460. X      COMPATFLAGS =
  461. X
  462. X      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  463. X       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  464. X           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  465. X        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  466. X           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  467. X        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  468. X   LDCOMBINEFLAGS = -X -r
  469. X
  470. X        MACROFILE = sun.cf
  471. X           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  472. X
  473. X    IMAKE_DEFINES =
  474. X
  475. X         IRULESRC = $(CONFIGDIR)
  476. X        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  477. X
  478. X     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  479. X            $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  480. X            $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  481. X
  482. X###########################################################################
  483. X# X Window System Build Parameters
  484. X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  485. X
  486. X###########################################################################
  487. X# X Window System make variables; this need to be coordinated with rules
  488. X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  489. X
  490. X          PATHSEP = /
  491. X        USRLIBDIR = $(DESTDIR)/lib
  492. X           BINDIR = $(DESTDIR)/bin/X11
  493. X          INCROOT = $(DESTDIR)/include
  494. X     BUILDINCROOT = $(TOP)
  495. X      BUILDINCDIR = $(BUILDINCROOT)/X11
  496. X      BUILDINCTOP = ..
  497. X           INCDIR = $(INCROOT)/X11
  498. X           ADMDIR = $(DESTDIR)/adm
  499. X           LIBDIR = $(USRLIBDIR)/X11
  500. X        CONFIGDIR = $(LIBDIR)/config
  501. X       LINTLIBDIR = $(USRLIBDIR)/lint
  502. X
  503. X          FONTDIR = $(LIBDIR)/fonts
  504. X         XINITDIR = $(LIBDIR)/xinit
  505. X           XDMDIR = $(LIBDIR)/xdm
  506. X           AWMDIR = $(LIBDIR)/awm
  507. X           TWMDIR = $(LIBDIR)/twm
  508. X           GWMDIR = $(LIBDIR)/gwm
  509. X          MANPATH = $(DESTDIR)/man
  510. X    MANSOURCEPATH = $(MANPATH)/man
  511. X           MANDIR = $(MANSOURCEPATH)1
  512. X        LIBMANDIR = $(MANSOURCEPATH)3
  513. X      XAPPLOADDIR = $(LIBDIR)/app-defaults
  514. X
  515. X        SOXLIBREV = 4.2
  516. X          SOXTREV = 4.0
  517. X         SOXAWREV = 4.0
  518. X        SOOLDXREV = 4.0
  519. X         SOXMUREV = 4.0
  520. X        SOXEXTREV = 4.0
  521. X
  522. X       FONTCFLAGS = -t
  523. X
  524. X     INSTAPPFLAGS = $(INSTDATFLAGS)
  525. X
  526. X            IMAKE = imake
  527. X           DEPEND = makedepend
  528. X              RGB = rgb
  529. X            FONTC = bdftosnf
  530. X        MKFONTDIR = mkfontdir
  531. X        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  532. X
  533. X        CONFIGSRC = $(TOP)/config
  534. X        CLIENTSRC = $(TOP)/clients
  535. X          DEMOSRC = $(TOP)/demos
  536. X           LIBSRC = $(TOP)/lib
  537. X          FONTSRC = $(TOP)/fonts
  538. X       INCLUDESRC = $(TOP)/X11
  539. X        SERVERSRC = $(TOP)/server
  540. X          UTILSRC = $(TOP)/util
  541. X        SCRIPTSRC = $(UTILSRC)/scripts
  542. X       EXAMPLESRC = $(TOP)/examples
  543. X       CONTRIBSRC = $(TOP)/../contrib
  544. X           DOCSRC = $(TOP)/doc
  545. X           RGBSRC = $(TOP)/rgb
  546. X        DEPENDSRC = $(UTILSRC)/makedepend
  547. X         IMAKESRC = $(CONFIGSRC)
  548. X         XAUTHSRC = $(LIBSRC)/Xau
  549. X          XLIBSRC = $(LIBSRC)/X
  550. X           XMUSRC = $(LIBSRC)/Xmu
  551. X       TOOLKITSRC = $(LIBSRC)/Xt
  552. X       AWIDGETSRC = $(LIBSRC)/Xaw
  553. X       OLDXLIBSRC = $(LIBSRC)/oldX
  554. X      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  555. X      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  556. X     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  557. X     EXTENSIONSRC = $(TOP)/extensions
  558. X
  559. X  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  560. X     EXTENSIONLIB =  -lXext
  561. X
  562. X          DEPXLIB = $(DEPEXTENSIONLIB)
  563. X             XLIB = $(EXTENSIONLIB) -lX11
  564. X
  565. X      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  566. X         XAUTHLIB =  -lXau
  567. X
  568. X        DEPXMULIB =
  569. X           XMULIB = -lXmu
  570. X
  571. X       DEPOLDXLIB =
  572. X          OLDXLIB = -loldX
  573. X
  574. X      DEPXTOOLLIB =
  575. X         XTOOLLIB = -lXt
  576. X
  577. X        DEPXAWLIB =
  578. X           XAWLIB = -lXaw
  579. X
  580. X LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  581. X         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  582. X          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  583. X        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  584. X          LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  585. X
  586. X        XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
  587. X        DEPXWLIB = $(USRLIBDIR)/libXw.a
  588. X        XWLIB =  -lXw
  589. X
  590. X          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  591. X
  592. X         DEPLIBS1 = $(DEPLIBS)
  593. X         DEPLIBS2 = $(DEPLIBS)
  594. X         DEPLIBS3 = $(DEPLIBS)
  595. X
  596. X###########################################################################
  597. X# Imake rules for building libraries, programs, scripts, and data files
  598. X# rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  599. X
  600. X###########################################################################
  601. X# start of Imakefile
  602. X
  603. X# X Desktop Manager version 1.4
  604. X#
  605. X# If make fails with a syntax error try expanding any tabs in this
  606. X# file to spaces. (use the expand(1) utility)
  607. X# If your machine has the strstr(3) string function then define the
  608. X# symbol HAS_STRSTR otherwise my version of strstr will be used.
  609. X# If your not sure then use mine.. you never know it might even
  610. X# be as fast as the system version!!
  611. X#
  612. X# If your OS is true SYSV without BSD extensions, e.g. symbolic
  613. X# links, then define the symbol TRUE_SYSV.
  614. X#
  615. X# If you prefer to use getcwd over getwd (SYSV machines) then
  616. X# define USE_CWD. This is done automatically if TRUE_SYSV is
  617. X# defined.
  618. X
  619. X              CC = gcc
  620. X
  621. X     CDEBUGFLAGS =
  622. X
  623. X            SRCS = main.c menus.c appman.c dirman.c \
  624. X                   fileman.c parse.c \
  625. X                   Xedw/XedwList.c Xedw/XedwForm.c lexical.l parser.y \
  626. X                   dialogs.c scroll_hack.c mystrstr.c buttons.c \
  627. X                   display.c listoption.c map.c newfile.c \
  628. X                   quit.c
  629. X
  630. X            OBJS = main.o menus.o appman.o dirman.o \
  631. X                   fileman.o parse.o parser.o lexical.o \
  632. X                   dialogs.o scroll_hack.o mystrstr.o buttons.o \
  633. X                   display.o listoption.o map.o newfile.o \
  634. X                   quit.o
  635. X         DEPLIBS = Xedw
  636. X LOCAL_LIBRARIES = -L Xedw -lXedw $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  637. X   SYS_LIBRARIES = -ll # -ly
  638. X
  639. X            YACC = yacc
  640. X          YFLAGS = -d
  641. X
  642. X         SUBDIRS = Xedw
  643. X
  644. X PROGRAM = xdtm
  645. X
  646. Xall:: xdtm
  647. X
  648. Xxdtm: $(OBJS) $(DEPLIBS)
  649. X    $(RM) $@
  650. X    $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
  651. X
  652. Xinstall:: xdtm
  653. X    $(INSTALL) -c $(INSTPGMFLAGS)   xdtm $(BINDIR)
  654. X
  655. Xinstall.man:: xdtm.man
  656. X    $(INSTALL) -c $(INSTMANFLAGS) xdtm.man $(MANDIR)/xdtm.1
  657. X
  658. Xdepend::
  659. X    $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  660. X
  661. Xlint:
  662. X    $(LINT) $(LINTFLAGS) $(SRCS) $(LINTLIBS)
  663. Xlint1:
  664. X    $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
  665. X
  666. Xclean::
  667. X    $(RM) $(PROGRAM)
  668. X
  669. Xlexical:  lexical.c
  670. X    $(RM) $@
  671. X    $(CC) -o $@  lexical.c $(LDOPTIONS)  $(LDLIBS) -DDEBUG_LEX $(EXTRA_LOAD_FLAGS)
  672. X
  673. Xclean::
  674. X    $(RM) lexical
  675. X
  676. Xparser:  lexical.c parser.c
  677. X    $(RM) $@
  678. X    $(CC) -o $@  lexical.c parser.c $(LDOPTIONS)  $(LDLIBS) -DDEBUG_YACC $(EXTRA_LOAD_FLAGS)
  679. X
  680. Xclean::
  681. X    $(RM) parser
  682. X
  683. XXedw::
  684. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  685. X    for i in  Xedw ;\
  686. X    do \
  687. X    (cd $$i ; echo "making" Xedw "in $(CURRENT_DIR)/$$i..."; \
  688. X    $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' all); \
  689. X    done
  690. X
  691. Xinstall::
  692. X    $(MKDIRHIER)  $(LIBDIR)/xdtm
  693. X
  694. Xinstall:: help
  695. X    $(INSTALL) -c $(INSTDATFLAGS) help  $(LIBDIR)/xdtm
  696. X
  697. Xinstall:: xdtmrc
  698. X    $(INSTALL) -c $(INSTDATFLAGS) xdtmrc  $(LIBDIR)/xdtm/xdtmrc
  699. X
  700. Xinstall::
  701. X    $(MKDIRHIER)  $(LIBDIR)/xdtm/icons
  702. X
  703. Xinstall::
  704. X           cp icons$(PATHSEP)*$(PATHSEP)*.icon $(LIBDIR)/xdtm/icons
  705. X
  706. Xetags:
  707. X           etags -t *.h $(SRCS)
  708. X
  709. Xclean::
  710. X           $(RM) lexical.c parser.c parser.h *.tab.*
  711. X
  712. Xparser.c parser.h: parser.y
  713. X           $(YACC) $(YFLAGS) parser.y
  714. X           $(MV) y.tab.c parser.c
  715. X           $(MV) y.tab.h parser.h
  716. X
  717. Xlexical.o: parser.h
  718. X
  719. X###########################################################################
  720. X# common rules for all Makefiles - do not edit
  721. X
  722. Xemptyrule::
  723. X
  724. Xclean::
  725. X    $(RM_CMD) \#*
  726. X
  727. XMakefile::
  728. X    -@if [ -f Makefile ]; then \
  729. X    echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  730. X    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  731. X    else exit 0; fi
  732. X    $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  733. X
  734. Xtags::
  735. X    $(TAGS) -w *.[ch]
  736. X    $(TAGS) -xw *.[ch] > TAGS
  737. X
  738. X###########################################################################
  739. X# rules for building in SUBDIRS - do not edit
  740. X
  741. Xinstall::
  742. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  743. X    for i in $(SUBDIRS) ;\
  744. X    do \
  745. X    (cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
  746. X    $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
  747. X    done
  748. X
  749. Xinstall.man::
  750. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  751. X    for i in $(SUBDIRS) ;\
  752. X    do \
  753. X    (cd $$i ; echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
  754. X    $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install.man); \
  755. X    done
  756. X
  757. Xclean::
  758. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  759. X    for i in $(SUBDIRS) ;\
  760. X    do \
  761. X    (cd $$i ; echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
  762. X    $(MAKE) $(MFLAGS) RM_CMD='$(RM_CMD)' clean); \
  763. X    done
  764. X
  765. Xtags::
  766. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  767. X    for i in $(SUBDIRS) ;\
  768. X    do \
  769. X    (cd $$i ; echo "tagging" "in $(CURRENT_DIR)/$$i..."; \
  770. X    $(MAKE) $(MFLAGS) TAGS='$(TAGS)' tags); \
  771. X    done
  772. X
  773. XMakefiles::
  774. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  775. X    for i in $(SUBDIRS) ;\
  776. X    do \
  777. X    echo "making Makefiles in $(CURRENT_DIR)/$$i..."; \
  778. X    case "$$i" in \
  779. X    ./?*/?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
  780. X    ./?*/?*/?*) newtop=../../../ sub=subsubsub;; \
  781. X    ./?*/?*) newtop=../../ sub=subsub;; \
  782. X    ./?*) newtop=../ sub=sub;; \
  783. X    */?*/?*/?*) newtop=../../../../ sub=subsubsubsub;; \
  784. X    */?*/?*) newtop=../../../ sub=subsubsub;; \
  785. X    */?*) newtop=../../ sub=subsub;; \
  786. X    *) newtop=../ sub=sub;; \
  787. X    esac; \
  788. X    case "$(TOP)" in \
  789. X    /?*) newtop= upprefix= ;; \
  790. X    *) upprefix=../ ;; \
  791. X    esac; \
  792. X    $(MAKE) $${sub}dirMakefiles UPPREFIX=$$upprefix NEWTOP=$$newtop \
  793. X    MAKEFILE_SUBDIR=$$i NEW_CURRENT_DIR=$(CURRENT_DIR)/$$i;\
  794. X    done
  795. X
  796. XsubdirMakefiles:
  797. X    $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
  798. X    -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
  799. X    echo "    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
  800. X    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
  801. X    else exit 0; fi
  802. X    cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  803. X    $(MAKE) $(MFLAGS) Makefiles
  804. X
  805. XsubsubdirMakefiles:
  806. X    $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
  807. X    -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
  808. X    echo "    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
  809. X    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
  810. X    else exit 0; fi
  811. X    cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  812. X    $(MAKE) $(MFLAGS) Makefiles
  813. X
  814. XsubsubsubdirMakefiles:
  815. X    $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
  816. X    -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
  817. X    echo "    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
  818. X    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
  819. X    else exit 0; fi
  820. X    cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  821. X    $(MAKE) $(MFLAGS) Makefiles
  822. X
  823. XsubsubsubsubdirMakefiles:
  824. X    $(RM) $(MAKEFILE_SUBDIR)/Makefile.bak
  825. X    -@if [ -f $(MAKEFILE_SUBDIR)/Makefile ]; then \
  826. X    echo "    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak"; \
  827. X    $(MV) $(MAKEFILE_SUBDIR)/Makefile $(MAKEFILE_SUBDIR)/Makefile.bak; \
  828. X    else exit 0; fi
  829. X    cd $(MAKEFILE_SUBDIR); $(IMAKE_CMD) -DTOPDIR=$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(UPPREFIX)$(TOP) -DCURDIR=$(NEW_CURRENT_DIR); \
  830. X    $(MAKE) $(MFLAGS) Makefiles
  831. X
  832. Xincludes::
  833. X    @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
  834. X    for i in $(SUBDIRS) ;\
  835. X    do \
  836. X    (cd $$i ; echo including "in $(CURRENT_DIR)/$$i..."; \
  837. X    $(MAKE) $(MFLAGS)   includes); \
  838. X    done
  839. X
  840. X###########################################################################
  841. X# dependencies generated by makedepend
  842. X
  843. SHAR_EOF
  844. chmod 0644 xdtm/Makefile ||
  845. echo 'restore of xdtm/Makefile failed'
  846. Wc_c="`wc -c < 'xdtm/Makefile'`"
  847. test 14290 -eq "$Wc_c" ||
  848.     echo 'xdtm/Makefile: original size 14290, current size' "$Wc_c"
  849. fi
  850. # ============= xdtm/Wishes ==============
  851. if test -f 'xdtm/Wishes' -a X"$1" != X"-c"; then
  852.     echo 'x - skipping xdtm/Wishes (File already exists)'
  853. else
  854. echo 'x - extracting xdtm/Wishes (Text)'
  855. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Wishes' &&
  856. XAdd any wishes to this list, also tick off any wishes that
  857. Xyou fulfill. Email the new list to me at eddyg@cogs.sussex.ac.uk
  858. Xif you change it.
  859. X
  860. X1) [May 1991, eddyg@cogs.sussex.ac.uk]
  861. X   Full job control, have a menu listing which jobs are currently 
  862. X   running, if selected let the user send a signal to that job.
  863. X   Quite simple to add to the existing code, just keep a list
  864. X   of currently running programs with their pid's. Use 'kill'
  865. X   to send messages to them, remove them from the list when they
  866. X   die and are waited for (return value from wait is the pid).
  867. X
  868. X    
  869. X2) [May 1991, eddyg@cogs.sussex.ac.uk]
  870. X   Fix bug which on some machines (none of the ones I have access to)
  871. X   inverts the icons exposed when a dialog box pop's down.
  872. X
  873. X3) [May 1991, eddyg@cogs.sussex.ac.uk]
  874. X   Allow multiple directories to be displayed. Need some mechanism
  875. X   of saying which directory is currently active (as far as the
  876. X   directory selector is concerned)
  877. X
  878. X4) [May 1991, eddyg@cogs.sussex.ac.uk]
  879. X   Display a diagram of the file-system in the form of a tree, into
  880. X   which the pointer may be clicked to jump across the file-system.
  881. X
  882. X5) [May 1991, eddyg@cogs.sussex.ac.uk]
  883. X   Allow the use of ~username in the directory selector and config
  884. X   file.
  885. X
  886. X6) [May 1991, eddyg@cogs.sussex.ac.uk]
  887. X   Allow TAB to be used to complete an unambigous completion
  888. X   of a directory name in the directory selector.
  889. X
  890. X7) [May 1991, eddyg@cogs.sussex.ac.uk]
  891. X   Allow more than one file to be viewed at a time.
  892. X
  893. X8) [May 1991, eddyg@cogs.sussex.ac.uk]
  894. X   Allow text to be edited when viewing the file.
  895. X
  896. X9) [May 1991, eddyg@cogs.sussex.ac.uk]
  897. X   Add a mechanism via which an arbitrary command may be executed, without
  898. X   having to have filenames as arguments. I suppose the map program over
  899. X   files could do this.
  900. X
  901. X10) [May 1991, eddyg@cogs.sussex.ac.uk]
  902. X    Cache the uid -> username translations to speedup lookup when running
  903. X    NIS (yellow pages).
  904. SHAR_EOF
  905. chmod 0644 xdtm/Wishes ||
  906. echo 'restore of xdtm/Wishes failed'
  907. Wc_c="`wc -c < 'xdtm/Wishes'`"
  908. test 1921 -eq "$Wc_c" ||
  909.     echo 'xdtm/Wishes: original size 1921, current size' "$Wc_c"
  910. fi
  911. # ============= xdtm/Xdtm ==============
  912. if test -f 'xdtm/Xdtm' -a X"$1" != X"-c"; then
  913.     echo 'x - skipping xdtm/Xdtm (File already exists)'
  914. else
  915. echo 'x - extracting xdtm/Xdtm (Text)'
  916. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xdtm' &&
  917. X! This is the X Resource file for xdtm.
  918. X! These resources make the program look prettier...
  919. X!
  920. X! Edward Groenendaal. <eddyg@cogs.sussex.ac.uk>
  921. X
  922. XXdtm*font: -*-helvetica-bold-r-normal--*-140-*
  923. XXdtm*pathManager*cursor: left_ptr
  924. XXdtm*menuBar*cursor: left_ptr
  925. XXdtm*buttonForm*cursor: left_ptr
  926. XXdtm*listoptionsettings.font: -*-courier-bold-r-normal--*-120-*
  927. X
  928. X! Start directory list in icon mode
  929. XXdtm.mode: icons
  930. X
  931. X! Show 30 lines of text at a time when viewing a file
  932. XXdtm.viewHeight: 30
  933. X
  934. X! Refresh the current directory list when a child exits.
  935. XXdtm.dirOnExit: True
  936. SHAR_EOF
  937. chmod 0644 xdtm/Xdtm ||
  938. echo 'restore of xdtm/Xdtm failed'
  939. Wc_c="`wc -c < 'xdtm/Xdtm'`"
  940. test 559 -eq "$Wc_c" ||
  941.     echo 'xdtm/Xdtm: original size 559, current size' "$Wc_c"
  942. fi
  943. # ============= xdtm/Xedw/DefIcon.icon ==============
  944. if test ! -d 'xdtm/Xedw'; then
  945.     echo 'x - creating directory xdtm/Xedw'
  946.     mkdir 'xdtm/Xedw'
  947. fi
  948. if test -f 'xdtm/Xedw/DefIcon.icon' -a X"$1" != X"-c"; then
  949.     echo 'x - skipping xdtm/Xedw/DefIcon.icon (File already exists)'
  950. else
  951. echo 'x - extracting xdtm/Xedw/DefIcon.icon (Text)'
  952. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xedw/DefIcon.icon' &&
  953. X/* Mode identifier for Emacs -*- Mode: C -*- */
  954. X
  955. X#define default_width 32
  956. X#define default_height 32
  957. Xstatic char default_bits[] = {
  958. X   0xf0, 0xff, 0x7f, 0x00, 0x10, 0x00, 0xc0, 0x00, 0x10, 0x00, 0x40, 0x01,
  959. X   0x10, 0x00, 0x40, 0x02, 0x10, 0x00, 0x40, 0x04, 0x10, 0x00, 0xc0, 0x0f,
  960. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  961. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  962. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  963. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  964. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  965. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  966. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  967. X   0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08, 0x10, 0x00, 0x00, 0x08,
  968. X   0x10, 0x00, 0x00, 0x08, 0xf0, 0xff, 0xff, 0x0f};
  969. SHAR_EOF
  970. chmod 0644 xdtm/Xedw/DefIcon.icon ||
  971. echo 'restore of xdtm/Xedw/DefIcon.icon failed'
  972. Wc_c="`wc -c < 'xdtm/Xedw/DefIcon.icon'`"
  973. test 933 -eq "$Wc_c" ||
  974.     echo 'xdtm/Xedw/DefIcon.icon: original size 933, current size' "$Wc_c"
  975. fi
  976. # ============= xdtm/Xedw/Imakefile ==============
  977. if test -f 'xdtm/Xedw/Imakefile' -a X"$1" != X"-c"; then
  978.     echo 'x - skipping xdtm/Xedw/Imakefile (File already exists)'
  979. else
  980. echo 'x - extracting xdtm/Xedw/Imakefile (Text)'
  981. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xedw/Imakefile' &&
  982. X/* This is the Imakefile for the Xedw Widget Set */
  983. X
  984. XCC=gcc
  985. XSRCS=XedwForm.c XedwList.c
  986. XOBJS=XedwForm.o XedwList.o
  987. X
  988. XNormalLibraryTarget(Xedw, $(OBJS))
  989. SHAR_EOF
  990. chmod 0644 xdtm/Xedw/Imakefile ||
  991. echo 'restore of xdtm/Xedw/Imakefile failed'
  992. Wc_c="`wc -c < 'xdtm/Xedw/Imakefile'`"
  993. test 150 -eq "$Wc_c" ||
  994.     echo 'xdtm/Xedw/Imakefile: original size 150, current size' "$Wc_c"
  995. fi
  996. # ============= xdtm/Xedw/Makefile ==============
  997. if test -f 'xdtm/Xedw/Makefile' -a X"$1" != X"-c"; then
  998.     echo 'x - skipping xdtm/Xedw/Makefile (File already exists)'
  999. else
  1000. echo 'x - extracting xdtm/Xedw/Makefile (Text)'
  1001. sed 's/^X//' << 'SHAR_EOF' > 'xdtm/Xedw/Makefile' &&
  1002. X# Makefile generated by imake - do not edit!
  1003. X# $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
  1004. X#
  1005. X# The cpp used on this machine replaces all newlines and multiple tabs and
  1006. X# spaces in a macro expansion with a single space.  Imake tries to compensate
  1007. X# for this, but is not always successful.
  1008. X#
  1009. X
  1010. X###########################################################################
  1011. X# Makefile generated from "Imake.tmpl" and <Imakefile>
  1012. X# $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  1013. X#
  1014. X# Platform-specific parameters may be set in the appropriate .cf
  1015. X# configuration files.  Site-wide parameters may be set in the file
  1016. X# site.def.  Full rebuilds are recommended if any parameters are changed.
  1017. X#
  1018. X# If your C preprocessor doesn't define any unique symbols, you'll need
  1019. X# to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  1020. X# "make Makefile", "make Makefiles", or "make World").
  1021. X#
  1022. X# If you absolutely can't get imake to work, you'll need to set the
  1023. X# variables at the top of each Makefile as well as the dependencies at the
  1024. X# bottom (makedepend will do this automatically).
  1025. X#
  1026. X
  1027. X###########################################################################
  1028. X# platform-specific configuration parameters - edit sun.cf to change
  1029. X
  1030. X# platform:  $XConsortium: sun.cf,v 1.38 89/12/23 16:10:10 jim Exp $
  1031. X# operating system:  SunOS 4.1
  1032. X
  1033. X###########################################################################
  1034. X# site-specific configuration parameters - edit site.def to change
  1035. X
  1036. X# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
  1037. X
  1038. X            SHELL = /bin/sh
  1039. X
  1040. X              TOP = ../.
  1041. X      CURRENT_DIR = ./Xedw
  1042. X
  1043. X               AR = ar cq
  1044. X  BOOTSTRAPCFLAGS =
  1045. X               CC = cc
  1046. X
  1047. X         COMPRESS = compress
  1048. X              CPP = /lib/cpp $(STD_CPP_DEFINES)
  1049. X    PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  1050. X          INSTALL = install
  1051. X               LD = ld
  1052. X             LINT = lint
  1053. X      LINTLIBFLAG = -C
  1054. X         LINTOPTS = -axz
  1055. X               LN = ln -s
  1056. X             MAKE = make
  1057. X               MV = mv
  1058. X               CP = cp
  1059. X           RANLIB = ranlib
  1060. X  RANLIBINSTFLAGS =
  1061. X               RM = rm -f
  1062. X     STD_INCLUDES =
  1063. X  STD_CPP_DEFINES =
  1064. X      STD_DEFINES =
  1065. X EXTRA_LOAD_FLAGS =
  1066. X  EXTRA_LIBRARIES =
  1067. X             TAGS = ctags
  1068. X
  1069. X    SHAREDCODEDEF = -DSHAREDCODE
  1070. X         SHLIBDEF = -DSUNSHLIB
  1071. X
  1072. X    PROTO_DEFINES =
  1073. X
  1074. X     INSTPGMFLAGS =
  1075. X
  1076. X     INSTBINFLAGS = -m 0755
  1077. X     INSTUIDFLAGS = -m 4755
  1078. X     INSTLIBFLAGS = -m 0664
  1079. X     INSTINCFLAGS = -m 0444
  1080. X     INSTMANFLAGS = -m 0444
  1081. X     INSTDATFLAGS = -m 0444
  1082. X    INSTKMEMFLAGS = -m 4755
  1083. X
  1084. X          DESTDIR = /usr/local/X11R4
  1085. X
  1086. X     TOP_INCLUDES = -I$(INCROOT)
  1087. X
  1088. X      CDEBUGFLAGS = -O
  1089. X        CCOPTIONS =
  1090. X      COMPATFLAGS =
  1091. X
  1092. X      ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
  1093. X       ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
  1094. X           CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  1095. X        LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  1096. X           LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  1097. X        LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  1098. X   LDCOMBINEFLAGS = -X -r
  1099. X
  1100. X        MACROFILE = sun.cf
  1101. X           RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  1102. X
  1103. X    IMAKE_DEFINES =
  1104. X
  1105. X         IRULESRC = $(CONFIGDIR)
  1106. X        IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  1107. X
  1108. X     ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  1109. X            $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  1110. X            $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  1111. X
  1112. X###########################################################################
  1113. X# X Window System Build Parameters
  1114. X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  1115. X
  1116. X###########################################################################
  1117. X# X Window System make variables; this need to be coordinated with rules
  1118. X# $XConsortium: Project.tmpl,v 1.63 89/12/18 16:46:44 jim Exp $
  1119. X
  1120. X          PATHSEP = /
  1121. X        USRLIBDIR = $(DESTDIR)/lib
  1122. X           BINDIR = $(DESTDIR)/bin/X11
  1123. X          INCROOT = $(DESTDIR)/include
  1124. X     BUILDINCROOT = $(TOP)
  1125. X      BUILDINCDIR = $(BUILDINCROOT)/X11
  1126. X      BUILDINCTOP = ..
  1127. X           INCDIR = $(INCROOT)/X11
  1128. X           ADMDIR = $(DESTDIR)/adm
  1129. X           LIBDIR = $(USRLIBDIR)/X11
  1130. X        CONFIGDIR = $(LIBDIR)/config
  1131. X       LINTLIBDIR = $(USRLIBDIR)/lint
  1132. X
  1133. X          FONTDIR = $(LIBDIR)/fonts
  1134. X         XINITDIR = $(LIBDIR)/xinit
  1135. X           XDMDIR = $(LIBDIR)/xdm
  1136. X           AWMDIR = $(LIBDIR)/awm
  1137. X           TWMDIR = $(LIBDIR)/twm
  1138. X           GWMDIR = $(LIBDIR)/gwm
  1139. X          MANPATH = $(DESTDIR)/man
  1140. X    MANSOURCEPATH = $(MANPATH)/man
  1141. X           MANDIR = $(MANSOURCEPATH)1
  1142. X        LIBMANDIR = $(MANSOURCEPATH)3
  1143. X      XAPPLOADDIR = $(LIBDIR)/app-defaults
  1144. X
  1145. X        SOXLIBREV = 4.2
  1146. X          SOXTREV = 4.0
  1147. X         SOXAWREV = 4.0
  1148. X        SOOLDXREV = 4.0
  1149. X         SOXMUREV = 4.0
  1150. X        SOXEXTREV = 4.0
  1151. X
  1152. X       FONTCFLAGS = -t
  1153. X
  1154. X     INSTAPPFLAGS = $(INSTDATFLAGS)
  1155. X
  1156. X            IMAKE = imake
  1157. X           DEPEND = makedepend
  1158. X              RGB = rgb
  1159. X            FONTC = bdftosnf
  1160. X        MKFONTDIR = mkfontdir
  1161. X        MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier.sh
  1162. X
  1163. X        CONFIGSRC = $(TOP)/config
  1164. X        CLIENTSRC = $(TOP)/clients
  1165. X          DEMOSRC = $(TOP)/demos
  1166. X           LIBSRC = $(TOP)/lib
  1167. X          FONTSRC = $(TOP)/fonts
  1168. X       INCLUDESRC = $(TOP)/X11
  1169. X        SERVERSRC = $(TOP)/server
  1170. X          UTILSRC = $(TOP)/util
  1171. X        SCRIPTSRC = $(UTILSRC)/scripts
  1172. X       EXAMPLESRC = $(TOP)/examples
  1173. X       CONTRIBSRC = $(TOP)/../contrib
  1174. X           DOCSRC = $(TOP)/doc
  1175. X           RGBSRC = $(TOP)/rgb
  1176. X        DEPENDSRC = $(UTILSRC)/makedepend
  1177. X         IMAKESRC = $(CONFIGSRC)
  1178. X         XAUTHSRC = $(LIBSRC)/Xau
  1179. X          XLIBSRC = $(LIBSRC)/X
  1180. X           XMUSRC = $(LIBSRC)/Xmu
  1181. X       TOOLKITSRC = $(LIBSRC)/Xt
  1182. X       AWIDGETSRC = $(LIBSRC)/Xaw
  1183. X       OLDXLIBSRC = $(LIBSRC)/oldX
  1184. X      XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  1185. X      BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  1186. X     MKFONTDIRSRC = $(FONTSRC)/mkfontdir
  1187. X     EXTENSIONSRC = $(TOP)/extensions
  1188. X
  1189. X  DEPEXTENSIONLIB = $(USRLIBDIR)/libXext.a
  1190. X     EXTENSIONLIB =  -lXext
  1191. X
  1192. X          DEPXLIB = $(DEPEXTENSIONLIB)
  1193. X             XLIB = $(EXTENSIONLIB) -lX11
  1194. X
  1195. X      DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  1196. X         XAUTHLIB =  -lXau
  1197. X
  1198. X        DEPXMULIB =
  1199. X           XMULIB = -lXmu
  1200. X
  1201. X       DEPOLDXLIB =
  1202. X          OLDXLIB = -loldX
  1203. X
  1204. X      DEPXTOOLLIB =
  1205. X         XTOOLLIB = -lXt
  1206. X
  1207. X        DEPXAWLIB =
  1208. X           XAWLIB = -lXaw
  1209. X
  1210. X LINTEXTENSIONLIB = $(USRLIBDIR)/llib-lXext.ln
  1211. X         LINTXLIB = $(USRLIBDIR)/llib-lX11.ln
  1212. X          LINTXMU = $(USRLIBDIR)/llib-lXmu.ln
  1213. X        LINTXTOOL = $(USRLIBDIR)/llib-lXt.ln
  1214. X          LINTXAW = $(USRLIBDIR)/llib-lXaw.ln
  1215. X
  1216. X        XWLIBSRC = $(CONTRIBSRC)/toolkits/Xw
  1217. X        DEPXWLIB = $(USRLIBDIR)/libXw.a
  1218. X        XWLIB =  -lXw
  1219. X
  1220. X          DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  1221. X
  1222. X         DEPLIBS1 = $(DEPLIBS)
  1223. X         DEPLIBS2 = $(DEPLIBS)
  1224. X         DEPLIBS3 = $(DEPLIBS)
  1225. X
  1226. X###########################################################################
  1227. X# Imake rules for building libraries, programs, scripts, and data files
  1228. X# rules:  $XConsortium: Imake.rules,v 1.67 89/12/18 17:14:15 jim Exp $
  1229. X
  1230. X###########################################################################
  1231. X# start of Imakefile
  1232. X
  1233. XCC=gcc
  1234. XSRCS=XedwForm.c XedwList.c
  1235. XOBJS=XedwForm.o XedwList.o
  1236. X
  1237. Xall:: libXedw.a
  1238. X
  1239. XlibXedw.a:  $(OBJS)
  1240. X    $(RM) $@
  1241. X    $(AR) $@  $(OBJS)
  1242. X    $(RANLIB) $@
  1243. X
  1244. X###########################################################################
  1245. X# common rules for all Makefiles - do not edit
  1246. X
  1247. Xemptyrule::
  1248. X
  1249. Xclean::
  1250. X    $(RM_CMD) \#*
  1251. X
  1252. XMakefile::
  1253. X    -@if [ -f Makefile ]; then \
  1254. X    echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  1255. X    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  1256. X    else exit 0; fi
  1257. X    $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  1258. X
  1259. Xtags::
  1260. X    $(TAGS) -w *.[ch]
  1261. X    $(TAGS) -xw *.[ch] > TAGS
  1262. X
  1263. X###########################################################################
  1264. X# empty rules for directories that do not have SUBDIRS - do not edit
  1265. X
  1266. Xinstall::
  1267. X    @echo "install in $(CURRENT_DIR) done"
  1268. X
  1269. Xinstall.man::
  1270. X    @echo "install.man in $(CURRENT_DIR) done"
  1271. X
  1272. XMakefiles::
  1273. X
  1274. Xincludes::
  1275. X
  1276. X###########################################################################
  1277. X# dependencies generated by makedepend
  1278. X
  1279. SHAR_EOF
  1280. chmod 0644 xdtm/Xedw/Makefile ||
  1281. echo 'restore of xdtm/Xedw/Makefile failed'
  1282. Wc_c="`wc -c < 'xdtm/Xedw/Makefile'`"
  1283. test 8234 -eq "$Wc_c" ||
  1284.     echo 'xdtm/Xedw/Makefile: original size 8234, current size' "$Wc_c"
  1285. fi
  1286. true || echo 'restore of xdtm/Xedw/XedwForm.c failed'
  1287. echo End of part 1, continue with part 2
  1288. exit 0
  1289.  
  1290. --
  1291. Dan Heller
  1292. O'Reilly && Associates       Z-Code Software    Comp-sources-x:
  1293. Senior Writer                President          comp-sources-x@uunet.uu.net
  1294. argv@ora.com                 argv@zipcode.com
  1295.