robert@gitpyr.UUCP (Robert Viduya) (08/12/85)
Ok, here's a diff listing to get hack.1.0.3 to work on a 3B2 running System V Release 2. Apparently, diff on System V doesn't have the capability to compare directories; instead they provide you with another command called dircmp which assumes the only thing you're going to do with the output is print it. Unfor- tunately, I don't believe it's compatible with patch (I haven't tried it). Also, I didn't have an unadulterated version of 1.0.3 on disk to do the com- parison (I also didn't feel like futzing with a slow tape drive), so the comparison may not exactly match what you have on your site. The only real difference should be in config.h, which is set up to compile and run on a Pyramid. Enjoy.. robert ---Cut Here--------------------------------------------------------------------- Comparison of directories hack.1.0.3 and hack.1.0.3.old different ./Makefile different ./config.h different ./hack.ioctl.c different ./hack.sh different ./hack.termcap.c different ./hack.tty.c -------------------------------------------------------------------------------- diff of ./Makefile in hack.1.0.3 and hack.1.0.3.old 4c4 < TERMLIB = -lcurses --- > TERMLIB = -ltermlib 57c57,58 < ld -o $(GAME) /lib/crt0.o $(HOBJ) $(TERMLIB) -lc --- > @echo "Loading ..." > @ld -X -o $(GAME) /lib/crt0.o $(HOBJ) $(TERMLIB) -lc 60c61 < echo "Done." --- > @echo "Done." 74c75,76 < lint -axbh -DLINT $(HACKCSRC) | sed '/_flsbuf/d' --- > @echo lint -axbh -DLINT ... > @lint -axbh -DLINT $(HACKCSRC) | sed '/_flsbuf/d' 78c80 < -for i in $(SOURCES) $(AUX) ; do \ --- > @- for i in $(SOURCES) $(AUX) ; do \ 83c85 < - for i in READ_ME $(SOURCES) $(AUX) Makefile date.h hack.onames.h\ --- > @- for i in READ_ME $(SOURCES) $(AUX) Makefile date.h hack.onames.h\ 91,94c93,96 < rm -f /usr/games/.HACK < cp $(GAME) /usr/games/.HACK < chmod 04511 /usr/games/.HACK < rm -f $(GAMEDIR)/bones* $(GAMEDIR)/save/* --- > rm -f $(GAMEDIR)/$(GAME) > cp $(GAME) $(GAMEDIR)/$(GAME) > chmod 04511 $(GAMEDIR)/$(GAME) > rm -f $(GAMEDIR)/bones* -------------------------------------------------------------------------------- diff of ./config.h in hack.1.0.3 and hack.1.0.3.old 23c23 < /* #define BSD /* delete this line on System V */ --- > #define BSD /* delete this line on System V */ 27,28c27,28 < /* #define PYRAMID_BUG /* avoid a bug on the Pyramid */ < #define NOWAITINCLUDE */ /* neither <wait.h> nor <sys/wait.h> exists */ --- > #define PYRAMID_BUG /* avoid a bug on the Pyramid */ > /* #define NOWAITINCLUDE */ /* neither <wait.h> nor <sys/wait.h> exists */ 30c30 < #define WIZARD "games" /* the person allowed to use the -D option */ --- > #define WIZARD "robert"/* the person allowed to use the -D option */ 58c58 < #define DEF_MAILREADER "/usr/bin/mail" /* or e.g. /bin/mail */ --- > #define DEF_MAILREADER "/usr/ucb/mail" /* or e.g. /bin/mail */ 102c102 < typedef short int schar; --- > typedef char schar; -------------------------------------------------------------------------------- diff of ./hack.ioctl.c in hack.1.0.3 and hack.1.0.3.old 30c30 < (void) ioctl(fileno(stdin), (int) TCSETAW, &termio); --- > (void) ioctl(fileno(stdin), (int) TCSETA, &termio); -------------------------------------------------------------------------------- diff of ./hack.sh in hack.1.0.3 and hack.1.0.3.old 4c4 < MAXNROFPLAYERS=6 --- > MAXNROFPLAYERS=4 -------------------------------------------------------------------------------- diff of ./hack.termcap.c in hack.1.0.3 and hack.1.0.3.old 9a10,13 > #ifndef lint > extern /* it is defined in libtermlib (libtermcap) */ > #endif lint > short ospeed; /* terminal baudrate; used by tputs */ 31,34d34 < if(!strncmp(term, "dmd", 4)) < flags.nonull = 1; /* this should be a termcap flag */ < if(!strncmp(term, "tty5620", 4)) < flags.nonull = 1; /* this should be a termcap flag */ 39c39 < if(!(BC = tgetstr("le", &tbufptr))) { --- > if(!(BC = tgetstr("bc", &tbufptr))) { 232a233,236 > static short tmspc10[] = { /* from termcap */ > 0, 2000, 1333, 909, 743, 666, 500, 333, 166, 83, 55, 41, 20, 10, 5 > }; > 238c242 < tputs("$<50>", 1, xputc); --- > tputs("50", 1, xputc); 244c248 < else if(CM) { --- > else if(ospeed > 0 || ospeed < SIZE(tmspc10)) if(CM) { 247c251 < register int i = 40; --- > register int i = 500 + tmspc10[ospeed]/2; 251c255 < i -= cmlen; --- > i -= cmlen*tmspc10[ospeed]; -------------------------------------------------------------------------------- diff of ./hack.tty.c in hack.1.0.3 and hack.1.0.3.old 42c42 < #define STTY(x) (ioctl(0, TCSETAW, x)) /* TCSETAF? TCSETAW? */ --- > #define STTY(x) (ioctl(0, TCSETA, x)) /* TCSETAF? TCSETAW? */ 55a56 > #define OSPEED(x) (x).sg_ospeed 60a62 > extern short ospeed; 73a76 > ospeed = OSPEED(inittyb); --Cut Here---------------------------------------------------------------------- -- Robert Viduya 01111000 Georgia Institute of Technology UUCP: {akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert {rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert BITNET: CCOPRRV @ GITVM1