home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / x / volume21 / kdrill / part02 < prev    next >
Encoding:
Text File  |  1993-10-07  |  17.2 KB  |  569 lines

  1. Newsgroups: comp.sources.x
  2. From: philb@cats.ucsc.edu (Philip Brown)
  3. Subject: v21i003:  kdrill - A program to quiz folks on kanji, Part02/02
  4. Message-ID: <1993Oct7.165600.27954@sparky.sterling.com>
  5. X-Md4-Signature: cfd9cd84c538992439b480c454dbdd81
  6. Sender: chris@sparky.sterling.com (Chris Olson)
  7. Organization: Sterling Software
  8. Date: Thu, 7 Oct 1993 16:56:00 GMT
  9. Approved: chris@sterling.com
  10.  
  11. Submitted-by: philb@cats.ucsc.edu (Philip Brown)
  12. Posting-number: Volume 21, Issue 3
  13. Archive-name: kdrill/part02
  14. Environment: X11R5
  15. Supersedes: kdrill: Volume 20, Issue 134-135
  16.  
  17. #! /bin/sh
  18. # This is a shell archive.  Remove anything before this line, then feed it
  19. # into a shell via "sh file" or similar.  To overwrite existing files,
  20. # type "sh file -c".
  21. # Contents:  INSTALL Imakefile KDrill PATCHLIST attributes.c externs.h
  22. #   icon.xbm kdrill.man patchlevel.h usefile
  23. # Wrapped by chris@sparky on Thu Oct  7 11:48:57 1993
  24. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  25. echo If this archive is complete, you will see the following message:
  26. echo '          "shar: End of archive 2 (of 2)."'
  27. if test -f 'INSTALL' -a "${1}" != "-c" ; then 
  28.   echo shar: Will not clobber existing file \"'INSTALL'\"
  29. else
  30.   echo shar: Extracting \"'INSTALL'\" \(969 characters\)
  31.   sed "s/^X//" >'INSTALL' <<'END_OF_FILE'
  32. Xkdrill v2.1
  33. X
  34. XYou should really check out Imakefile to see if things are okay for your
  35. Xsystem. Specifically, if you do not have your X11 headers in
  36. X/usr/include/X11, you will have to change the INCLUDES line. There may be
  37. Xother stuff you wish to fiddle with.
  38. X
  39. XRead README about getting "kanjidic", if you do not have it yet. It is
  40. Xrequired for this program.
  41. X
  42. XYou technically do not need an ANSI compiler for this program, although 
  43. X SUN's cc whines about "No Aggregate initialization", in "main.c"
  44. XIf you're determined, you can fix that.
  45. X
  46. XAlso: This is techinically for X11R5. I do not think it will work on R4.
  47. XApart from changing #include files, and fonts, I think that the R4 Xaw
  48. Xsupport for 16-bit fonts is broken. If you manage to cobble something
  49. Xtogether on your R4 system, I will be happy to incorporate your source
  50. Xinto the "official" version of kdrill, but I will not go outof my to
  51. Xsupport R4.
  52. X
  53. X  Philip Brown 
  54. X 1993 -- July 25th, 6am
  55. X (almost time for bed!)
  56. END_OF_FILE
  57.   if test 969 -ne `wc -c <'INSTALL'`; then
  58.     echo shar: \"'INSTALL'\" unpacked with wrong size!
  59.   fi
  60.   # end of 'INSTALL'
  61. fi
  62. if test -f 'Imakefile' -a "${1}" != "-c" ; then 
  63.   echo shar: Will not clobber existing file \"'Imakefile'\"
  64. else
  65.   echo shar: Extracting \"'Imakefile'\" \(881 characters\)
  66.   sed "s/^X//" >'Imakefile' <<'END_OF_FILE'
  67. XDEPLIBS = $(DEPXLIB)
  68. X/* Sun compilations require having the XMU lib here...
  69. X * I don't know about "normal" systems
  70. X */
  71. XLOCAL_LIBRARIES = $(XLIB) $(XTOOLLIB) $(XAWLIB) $(XMULIB)
  72. X
  73. X
  74. X/*
  75. X *R4 NOTE!!!
  76. X *  I am told you can change fonts to 
  77. X *  "jeuc.16x32". [in "init.c", or with the -smallkanji/-kanjifont flags]
  78. X *  or whatever 16-bit kanji font your system happens to have.
  79. X *   That was for kdrill v1.
  80. X * However, Since I rely on Xaw's 16-bit handling in V2 of kdrill,
  81. X *  I am no longer sure this will work.
  82. X */
  83. X
  84. X/* DEFINES =   -DDEBUG*/
  85. X
  86. X/* 
  87. X * I don't like putting <X11/...> for everything, so..
  88. X */
  89. XINCLUDES = -I/usr/include/X11
  90. X
  91. X/*
  92. X *  If you want to force things...
  93. X * CDEBUGFLAGS = -g
  94. X * BINDIR = /usr/local/bin/X11
  95. X */
  96. X
  97. XSRCS = main.c readfile.c game.c init.c widgets.c attributes.c
  98. XOBJS = main.o readfile.o game.o init.o widgets.o attributes.o
  99. X
  100. XComplexProgramTarget(kdrill)
  101. X
  102. END_OF_FILE
  103.   if test 881 -ne `wc -c <'Imakefile'`; then
  104.     echo shar: \"'Imakefile'\" unpacked with wrong size!
  105.   fi
  106.   # end of 'Imakefile'
  107. fi
  108. if test -f 'KDrill' -a "${1}" != "-c" ; then 
  109.   echo shar: Will not clobber existing file \"'KDrill'\"
  110. else
  111.   echo shar: Extracting \"'KDrill'\" \(445 characters\)
  112.   sed "s/^X//" >'KDrill' <<'END_OF_FILE'
  113. X! usefile for "kdrill"
  114. X! if this usefile is installed,
  115. X! ALL ENTRIES MUST BE USED!!!
  116. X! otherwise, the program most likely will crash
  117. X
  118. XKDrill.usefile:         usefile
  119. XKDrill.dictfile:        kanjidic
  120. XKDrill.kanjifont:       kanji24
  121. XKDrill.smallkanji:      kanji16
  122. XKDrill.font:            fixed
  123. XKDrill.gradelevel:      0
  124. X! the following are boolean values
  125. X
  126. XKDrill.showkana:        true
  127. XKDrill.guessmeaning:    false
  128. XKDrill.noBell:          false
  129. X
  130. END_OF_FILE
  131.   if test 445 -ne `wc -c <'KDrill'`; then
  132.     echo shar: \"'KDrill'\" unpacked with wrong size!
  133.   fi
  134.   # end of 'KDrill'
  135. fi
  136. if test -f 'PATCHLIST' -a "${1}" != "-c" ; then 
  137.   echo shar: Will not clobber existing file \"'PATCHLIST'\"
  138. else
  139.   echo shar: Extracting \"'PATCHLIST'\" \(679 characters\)
  140.   sed "s/^X//" >'PATCHLIST' <<'END_OF_FILE'
  141. Xkdrill v1.1:
  142. X    - Patched so initstuff gets passed argc and argv!!
  143. X    - Now actually checks for depth of window. QUITE important, when
  144. X      creating a pixmap, eh?! (hardcoding, bad. Bad!)
  145. X        - fiddled with man page
  146. X
  147. Xv1.3:
  148. X    - added resource use, for usefile, and dictfile
  149. X
  150. X
  151. X * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  152. X
  153. Xv2.0: MASSIVE re-writing to rely on 16-bit-font support in Xaw!!
  154. X   (glarg)
  155. X
  156. X   Improved  random kanji picking immesureably.
  157. X   Theoretically added kana display
  158. X   Allowed changing of fonts
  159. X
  160. Xv2.1:
  161. X  Fixed  most of the features that didn't work in v2.0:
  162. X    -noBell, -gradelevel, -showkana
  163. X  Added icon!
  164. X  Man page cleaned up even more.
  165. X
  166. END_OF_FILE
  167.   if test 679 -ne `wc -c <'PATCHLIST'`; then
  168.     echo shar: \"'PATCHLIST'\" unpacked with wrong size!
  169.   fi
  170.   # end of 'PATCHLIST'
  171. fi
  172. if test -f 'attributes.c' -a "${1}" != "-c" ; then 
  173.   echo shar: Will not clobber existing file \"'attributes.c'\"
  174. else
  175.   echo shar: Extracting \"'attributes.c'\" \(602 characters\)
  176.   sed "s/^X//" >'attributes.c' <<'END_OF_FILE'
  177. X/* atributes.c
  178. X *  This file currently exists SOLELY to contain a quickly
  179. X *  portable routine to turn on backing store.
  180. X *  We would NEVER want to turn OFF backing store :-)
  181. X */
  182. X#include <stdio.h>
  183. X#include <X11/Xos.h>
  184. X#include <X11/Xlib.h>
  185. Xstatic XSetWindowAttributes attribs;
  186. X
  187. Xint SetBackingStore(display,screen,win)
  188. XDisplay *display;
  189. XScreen *screen;
  190. XWindow win;
  191. X{
  192. X    if(!DoesBackingStore(screen)){
  193. X        fprintf(stderr,"This aplication expects to have backing store available\n");
  194. X        return 0;
  195. X    }
  196. X    attribs.backing_store = Always;
  197. X    XChangeWindowAttributes(display,win,CWBackingStore,&attribs);
  198. X    return 1;
  199. X}
  200. END_OF_FILE
  201.   if test 602 -ne `wc -c <'attributes.c'`; then
  202.     echo shar: \"'attributes.c'\" unpacked with wrong size!
  203.   fi
  204.   # end of 'attributes.c'
  205. fi
  206. if test -f 'externs.h' -a "${1}" != "-c" ; then 
  207.   echo shar: Will not clobber existing file \"'externs.h'\"
  208. else
  209.   echo shar: Extracting \"'externs.h'\" \(1048 characters\)
  210.   sed "s/^X//" >'externs.h' <<'END_OF_FILE'
  211. Xextern struct translationstruct *translations[0x8000];
  212. Xextern int lowest,highest,numberofkanji;    /* keep track of how many we have */
  213. Xextern char *dictname,*usefile,kanjifontname[];
  214. X
  215. Xextern void GetXtString();
  216. Xextern int GetXtNumber();
  217. Xextern Boolean GetXtBoolean();
  218. X
  219. Xextern int xtoi(),getline();
  220. Xvoid readstructs(),readstructs(),kprint(),eprint();
  221. Xextern void englishcallback();
  222. Xextern void kanjicallback();
  223. Xextern void CountKanji();
  224. Xextern void ChangeMode();
  225. Xextern void DescribeCurrent();
  226. X
  227. Xextern XFontStruct *largekfont;
  228. Xextern XFontStruct *smallkfont;
  229. Xextern XFontStruct *fixedfont;
  230. X
  231. Xextern void    quit();
  232. Xextern XtAppContext Context;
  233. X
  234. Xextern unsigned long black,white;
  235. Xextern Display    *display;
  236. Xextern Window    mainwindow,rootwindow;
  237. Xextern GC    gc,cleargc;
  238. X
  239. Xextern Widget toplevel,form,quitbutton,statusline;
  240. Xextern Widget gradedisplay;
  241. Xextern Widget kanjimode,englishmode,togglekana;
  242. Xextern Widget englishWidget[4],kanjiWidget[4];
  243. X
  244. X/* misc resource-level stuffs... */
  245. Xextern int doBell;
  246. Xextern int gradelevel;
  247. Xextern int Kanji2English,showEnglish;
  248. END_OF_FILE
  249.   if test 1048 -ne `wc -c <'externs.h'`; then
  250.     echo shar: \"'externs.h'\" unpacked with wrong size!
  251.   fi
  252.   # end of 'externs.h'
  253. fi
  254. if test -f 'icon.xbm' -a "${1}" != "-c" ; then 
  255.   echo shar: Will not clobber existing file \"'icon.xbm'\"
  256. else
  257.   echo shar: Extracting \"'icon.xbm'\" \(824 characters\)
  258.   sed "s/^X//" >'icon.xbm' <<'END_OF_FILE'
  259. X#define icon_width 25
  260. X#define icon_height 30
  261. Xstatic char icon_bits[] = {
  262. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x18, 0x0c, 0x00,
  263. X   0x80, 0x30, 0x0c, 0x00, 0x00, 0x33, 0x06, 0x00, 0x20, 0x00, 0x01, 0x00,
  264. X   0xf0, 0xff, 0x3f, 0x00, 0x30, 0x00, 0x10, 0x00, 0x10, 0x00, 0x10, 0x00,
  265. X   0xc8, 0xff, 0x07, 0x00, 0x40, 0x00, 0x04, 0x00, 0x40, 0x00, 0x04, 0x00,
  266. X   0xc0, 0xff, 0x07, 0x00, 0x40, 0x00, 0x04, 0x00, 0x40, 0x00, 0x04, 0x00,
  267. X   0xc0, 0xff, 0x07, 0x00, 0x40, 0x00, 0x04, 0x00, 0x40, 0x00, 0x04, 0x00,
  268. X   0xc0, 0xff, 0x07, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00,
  269. X   0x00, 0x26, 0x00, 0x00, 0x00, 0x22, 0x20, 0x00, 0x80, 0x21, 0x20, 0x00,
  270. X   0x78, 0xc0, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  271. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  272. END_OF_FILE
  273.   if test 824 -ne `wc -c <'icon.xbm'`; then
  274.     echo shar: \"'icon.xbm'\" unpacked with wrong size!
  275.   fi
  276.   # end of 'icon.xbm'
  277. fi
  278. if test -f 'kdrill.man' -a "${1}" != "-c" ; then 
  279.   echo shar: Will not clobber existing file \"'kdrill.man'\"
  280. else
  281.   echo shar: Extracting \"'kdrill.man'\" \(4955 characters\)
  282.   sed "s/^X//" >'kdrill.man' <<'END_OF_FILE'
  283. X.\" kdrill.1 93/07/22 
  284. X.TH KDRILL 1 "22nd July 1993" "Phil\'s Software"
  285. X.SH NAME
  286. Xkdrill v2.1 \- drill program for kanji chars under Xwindows
  287. X.SH OPTIONS
  288. X
  289. X.TP
  290. X.B \-usefile \fINewUsefileName\fR
  291. XChange usefile.
  292. X.TP
  293. X.B \-dictfile \fIOtherKanjidicFile\fR
  294. XChange dictionary file name
  295. X.TP
  296. X.B \-font \fIFontName\fR
  297. XChange main english font.
  298. X.TP
  299. X.B \-kanjifont \fIKanjiFontName\fR
  300. XChange large kanji font.
  301. X.TP
  302. X.B \-smallkanji \fIKanjiFontName\fR
  303. XChange small kanji/kana font.
  304. X.TP
  305. X.B \-noBell 
  306. Xturns off beep on wrong answer.
  307. X.TP
  308. X.B \-guessmeaning 
  309. Xstart with four kanji, and one meaning to guess.
  310. X.TP
  311. X.B \-gradelevel \fIlevel#\fR
  312. Xstart at a different grade level limit.
  313. X.TP
  314. X.B \-showkana
  315. Xstart with kana meanings instead of english.
  316. X
  317. X.SH RESOURCES
  318. XAll the above options can be set in a resource file, with the same names
  319. Xas values. See the sample "KDrill" file for more detail, which is
  320. Xnormally installed in /usr/lib/X11/app-defaults.
  321. X
  322. X.SH DESCRIPTION
  323. X
  324. X.B kdrill
  325. Xis a program to drill users on meanings of kanji characters. Various
  326. Xformats of drills are available:
  327. X
  328. X.RS 5
  329. Xkanji to english
  330. X
  331. Xkanji to kana
  332. X
  333. Xenglish to kanji
  334. X
  335. Xkana to kanji
  336. X.RE
  337. X
  338. XThe user can restrict the range of kanji to drill on in different, yet
  339. Xcompatible, ways. The first way is to make a "usefile" (described below),
  340. Xwith a an explicit list of desired kanji.
  341. XA second way to limit the range of the drill is to change the gradelevel.
  342. XThis can be done by clicking the Grade: button, using the -gradelevel
  343. Xflag, or setting the gradelevel resource.
  344. X
  345. X
  346. Xkdrill will use the "kanjidic" file to interpret many of the various
  347. X16-bit kanji chars in the
  348. X.I kanji24
  349. Xfont supplied with the X11R5 distribution. It checks for a file by the name of
  350. X.B "usefile"
  351. Xin the current directory, although this name can be changed either with
  352. Xthe '-usefile' option, or in a resource file.
  353. X
  354. X
  355. X.I kanjidic
  356. Xsubdivides its entries into grade levels, and frequency ratings. Grade
  357. Xlevels are similar to school grade levels, but more compressed. For
  358. Xkdrill's purposes, grade levels start at 1, and increase to 6. There are
  359. Xmany kanji that do not have a grade level, due to their infrequency of
  360. Xuse. You may specify that you only with to see kanji of a certain grade
  361. Xlevel or lower. To use ALL kanji, you may specify gradelevel as 0. Grade
  362. Xlevel 0 is the default, unless a resource file for kanjidrill has been
  363. Xinstalled to override this.
  364. X
  365. X.I kanjidic
  366. Xalso has a frequency rating for the top 2000 or so kanji. Kdrill will
  367. Xdisplay this for your information, but the program does not attach any
  368. Xsignificance to the number at present.
  369. X
  370. XAny grade level or frequency rating the current kanji has, will be
  371. Xdisplayed in the top right hand side of the window, next to the "G:" and
  372. X"F:" letters. The kanji number will be displayed \fIin
  373. Xhexadecimal\fR(base 16) after the "#:" sign. It is displayed in
  374. Xhexadecimal because that is what kanjidic, xfd, and the usefile display.
  375. X
  376. X.SH USEFILES
  377. X
  378. XA usefile consists of a list of hex numbers; one per line, no
  379. Xinitial spaces allowed. A usefile makes the program only use particular
  380. Xkanji, instead of the thousands possible in the dictionary. It is
  381. Xpossible to add comment lines by having the very first character of a
  382. Xline be "#". It is also possible to add english reminders after the number
  383. Xon each line, so you remember what each number is.
  384. XHex numbers can be checked or found by using the "xfd" util on the
  385. X"kanji24" font. 
  386. X
  387. XGrade restrictions will apply to ALL kanji selected, even if you have a
  388. Xusefile. Thus, if all your usefile-defined kanji are of grade 4 or
  389. Xhigher, and you have selected grade 3 as a cut-off point, kdrill will
  390. Xcomplain that there are not enough kanji available, and attempt to
  391. Xincrease the grade level.
  392. X
  393. XIf you have a usefile, and wish the program to ignore it, you can run
  394. X"kdrill -usefile none", and it will ignore it. "none" is NOT a keyword.
  395. XIf you actually have a file in your directory named "none", use a
  396. Xdifferent word.
  397. X
  398. X.SH KANJIDIC
  399. XThe dictionary, kanjidic, is currently available where it originated, via
  400. Xftp from
  401. X.I monu6.cc.monash.edu.au,
  402. Xor from a mirror in the U.S. at ftp.uwtc.washington.edu
  403. X
  404. XAt the monu6 site, both the dictionary and this program can currently be
  405. Xfound in
  406. X.I /pub/nihongo
  407. X
  408. X.SH BUGS
  409. X"kanjidic" isn't perfect. There are "incomplete" entries, missing either
  410. Xenglish or kana translations. There are also entries consisting of 
  411. X"See Nxxxx" which isn't really an improvement.
  412. X
  413. X.SH AUTHOR
  414. XPhilip P Brown
  415. X
  416. X(Who does not speak Japanese or Chinese, but hopes to one day)
  417. X
  418. X.SH COPYRIGHT
  419. XPhilip Brown is currently a student of the University of California.
  420. XHowever, this program was developed entirely by Philip Brown, on his own
  421. Xcomputer, not related to any classwork. Philip Brown retains sole right
  422. Xto this program.
  423. X
  424. XPhilip Brown hereby gives permission to use, and/or modify this code, so
  425. Xlong as it it not sold for profit, and the author's name appears
  426. Xsomewhere in the code. Seperate derivative works are not covered by this
  427. Xrestriction.
  428. X
  429. END_OF_FILE
  430.   if test 4955 -ne `wc -c <'kdrill.man'`; then
  431.     echo shar: \"'kdrill.man'\" unpacked with wrong size!
  432.   fi
  433.   # end of 'kdrill.man'
  434. fi
  435. if test -f 'patchlevel.h' -a "${1}" != "-c" ; then 
  436.   echo shar: Will not clobber existing file \"'patchlevel.h'\"
  437. else
  438.   echo shar: Extracting \"'patchlevel.h'\" \(76 characters\)
  439.   sed "s/^X//" >'patchlevel.h' <<'END_OF_FILE'
  440. X#ifndef _PATCHLEVEL_H
  441. X#define _PATCHLEVEL_H
  442. X
  443. X#define VERSION    "v2.1"
  444. X
  445. X#endif
  446. END_OF_FILE
  447.   if test 76 -ne `wc -c <'patchlevel.h'`; then
  448.     echo shar: \"'patchlevel.h'\" unpacked with wrong size!
  449.   fi
  450.   # end of 'patchlevel.h'
  451. fi
  452. if test -f 'usefile' -a "${1}" != "-c" ; then 
  453.   echo shar: Will not clobber existing file \"'usefile'\"
  454. else
  455.   echo shar: Extracting \"'usefile'\" \(1379 characters\)
  456.   sed "s/^X//" >'usefile' <<'END_OF_FILE'
  457. X# This is the "kdrill" 'usefile'
  458. X#  it is used to abridge the "kanjidic" dictionary
  459. X#
  460. X# lines can be commented by the VERY FIRST CHARACTER being a '#'
  461. X# Try not to leave blank lines
  462. X# Only the initial hex number is important..
  463. X#  You can add whatever english you  like afterwards,so that you remember
  464. X#  what the numbers mean.
  465. X3030 rising sun
  466. X303f someone?
  467. X306c "one"
  468. X312b rain
  469. X312c east
  470. X315f yen, round
  471. X323c below ,low 
  472. X3433 dry
  473. X3250 fire
  474. X3456 interval (of time), a room
  475. X355d bow
  476. X3662 gold
  477. X3665 nine
  478. X376e  Moon
  479. X384a self
  480. X385e five
  481. X3971 country
  482. X3b30 three
  483. X3b33 mountain
  484. X3b4d four
  485. X3b4e samurai,gentleman
  486. X3b5s child
  487. X3b54 city
  488. X3b7b temple(buddhist)
  489. X3b7e time, or hour
  490. X3c37 seven
  491. X3d3a utensil?ten??
  492. X3d3d ten
  493. X3d50 exit (verb)
  494. X3d77 woman
  495. X3e2e small
  496. X3e65 above
  497. X3f4d person
  498. X3f65 water
  499. X4038 life
  500. X403e west
  501. X405a cut, cut off
  502. X4069 thousand
  503. X406e river
  504. X4134 all
  505. X422b sheaf
  506. X4267 large
  507. X4331 one
  508. X4366 middle/center
  509. X4544 rice paddy
  510. X455a earth
  511. X4561 knife , sword
  512. X466e south
  513. X4673 two
  514. X467c sun
  515. X467e enter
  516. X482a cultivated field, really.
  517. X482b farm?
  518. X482c eight
  519. X4934 hundred
  520. X4977 wind, style
  521. X4a2c minute, portion
  522. X4a60 garden
  523. X4b2e country
  524. X4b4c north
  525. X4b5c book, origin
  526. X4b7c ten thousand, many, etc
  527. X4c40 bright, clear
  528. X4c5a tree
  529. X4c5c ordinal for numbers
  530. X4c67 gates
  531. X4d4b day of week
  532. X4d5b sunshine
  533. X4f3b six
  534. X5042 thousand (sort of)
  535. X5051 hundred (sort of)
  536. X5345 one?
  537. X5744 three (fur/hair radical)
  538. X666d new moon
  539. X
  540. END_OF_FILE
  541.   if test 1379 -ne `wc -c <'usefile'`; then
  542.     echo shar: \"'usefile'\" unpacked with wrong size!
  543.   fi
  544.   # end of 'usefile'
  545. fi
  546. echo shar: End of archive 2 \(of 2\).
  547. cp /dev/null ark2isdone
  548. MISSING=""
  549. for I in 1 2 ; do
  550.     if test ! -f ark${I}isdone ; then
  551.     MISSING="${MISSING} ${I}"
  552.     fi
  553. done
  554. if test "${MISSING}" = "" ; then
  555.     echo You have unpacked both archives.
  556.     rm -f ark[1-9]isdone
  557. else
  558.     echo You still must unpack the following archives:
  559.     echo "        " ${MISSING}
  560. fi
  561. exit 0
  562. exit 0 # Just in case...
  563. -- 
  564.   // chris@Sterling.COM           | Send comp.sources.x submissions to:
  565. \X/  Amiga - The only way to fly! |    sources-x@sterling.com
  566.  "It's intuitively obvious to the |
  567.   most casual observer..."        | GCS d+/-- p+ c++ l+ m+ s++/+ g+ w+ t+ r+ x+
  568.