[comp.sources.bugs] Getting hack to work on 7 character systems

michael@stb.UUCP (Michael) (08/28/87)

The following sed script will fix hack's greater than 7 character problems.

First, run this on makedefs.c
Second, edit makedefs, line 350. The last two lines in the abilities list
will need "Teleport" or "Teleportation" spelled out in full.
Third, do 'make onames.h'
Fourth, move alloc.c and makedefs.c somewhere where they don't end in .c
Fifth, run this script on all *.c and *.h files
Sixth, move alloc.c and makedefs.c back
Finally, do a full make.

Note: I have only turned about 1/2 the options on, but this is still nearly
complete, and complete enough to get started. Hope this helps those without
flexnames.

s/GIANT_/GI_/g
s/GAIN_/G_/g
s/DEAD_/D_/g
s/CROSSBOW/XBOW/g
s/VIOLET_//g
s/TELEPORT/TP/g
s/Teleport/Tp/g
s/PROTECTION/PT/g
s/Protection/Pt/g
s/ENCHANT/EN/g
s/FOUNTAIN_SYM/SYM_FOUNTAIN/g
s/moster_nearby/mon_nearby/g
s/corrode_/corr_/g
s/\([^_]\)FOUNTAIN\([^_S]\)/\1TYP_FOUNTAIN\2/g
s/timed_occ/t_occ/g
-- 
: Michael Gersten		seismo!scgvaxd!stb!michael
: Copy protection? Just say Pirate! (if its worth pirating)