-junio
*** include/config.h 1993/01/30 23:52:43 3.1
--- include/config.h 1993/01/30 23:55:27
***************
*** 241,246 ****
--- 241,249 ----
#ifdef UNIX
# define COMPRESS "/usr/ucb/compress" /* path name for 'compress' */
+ # define COMPRESS_SUFFIX ".Z" /* suffix of compressed files */
+ /* # define COMPRESS "/local/bin/gzip" /* use gzip */
+ /* # define COMPRESS_SUFFIX ".z" /* suffix of compressed files */
#endif
#ifndef COMPRESS
# define INTERNAL_COMP /* control use of NetHack's compression routines */
*** src/files.c 1993/01/30 23:50:55 3.1
--- src/files.c 1993/01/30 23:52:16
***************
*** 476,482 ****
int fd;
Strcpy(cfn,filename);
! Strcat(cfn,".Z");
if((fd = open(cfn,O_RDONLY)) >= 0) {
(void) close(fd);
Strcpy(cmd, COMPRESS);
--- 476,482 ----
int fd;
Strcpy(cfn,filename);
! Strcat(cfn,COMPRESS_SUFFIX);
if((fd = open(cfn,O_RDONLY)) >= 0) {
(void) close(fd);
Strcpy(cmd, COMPRESS);
--
|
__-+-__ Jun Hamano
_-+ (|o|) +-_ ju...@twinsun.com
! . !
my e-mail address is ch...@bones.et.byu.edu