From f40f82e070382ac5658ea1826f04162a70a1a21d Mon Sep 17 00:00:00 2001 From: max Date: Sun, 22 Sep 1996 08:56:11 +0000 Subject: Fix to update score file correctly. Submitted by: Hidekazu Kuroki --- games/yamsweeper/files/Imakefile | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'games/yamsweeper/files') diff --git a/games/yamsweeper/files/Imakefile b/games/yamsweeper/files/Imakefile index 4579f1493a7b..347de7eea371 100644 --- a/games/yamsweeper/files/Imakefile +++ b/games/yamsweeper/files/Imakefile @@ -4,7 +4,7 @@ XCOMM Imakefile src for Yamsweeper, created by hirofumi XCOMM -XCOMM $Id: Imakefile,v 1.2 1994/11/03 00:18:42 hirofumi Exp hirofumi $ +XCOMM $Id: Imakefile,v 1.1.1.1 1996/09/21 16:56:46 max Exp $ XCOMM #include "REVISION" @@ -20,11 +20,13 @@ OBJS = $(SRCS:.c=.o) YAMSDIR = $(LIBDIR)/yamsweeper LOGFILE = $(YAMSDIR)/yams.log - +SCRFILE = $(YAMSDIR)/yams.hi +OWNER = games +GROUP = bin DEFINES = '-DLOGFILE="$(LOGFILE)"' -DLOG_USER=cppLogUser \ @@\ -DHAS_RANDOM=1 -DNO_FD_SET=0 \ @@\ - -DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="$(YAMSDIR)/yams.hi"' + -DHIGH_SCORE=cppHighScore '-DHIGH_SCORE_FILE="$(SCRFILE)"' INSTALLDIR= $(BINDIR) @@ -43,15 +45,27 @@ NormalProgramTarget(yamsweeper,$(OBJS),$(DEPLIB),XawClientLibs,) InstallProgramWithFlags(yamsweeper,$(INSTALLDIR),$(INSTUIDFLAGS)) InstallManPage(yamsweeper,$(MANDIR)) +install:: + chown $(OWNER).$(GROUP) $(BINDIR)/yamsweeper + chmod 4755 $(BINDIR)/yamsweeper + + #if cppLogUser install:: MakeDir($(YAMSDIR)) + chown $(OWNER).$(GROUP) $(YAMSDIR) touch $(LOGFILE) + chown $(OWNER).$(GROUP) $(LOGFILE) + chmod 644 $(LOGFILE) #endif /* cppLogUser */ #if cppHighScore install:: MakeDir($(YAMSDIR)) + chown $(OWNER).$(GROUP) $(YAMSDIR) + touch $(SCRFILE) + chown $(OWNER).$(GROUP) $(SCRFILE) + chmod 644 $(SCRFILE) #endif #else /* cppLogUser || cppHighScore */ -- cgit