summaryrefslogtreecommitdiff
path: root/games/xsoldier/patches
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>1998-09-15 00:05:41 +0000
committergarbled <garbled@pkgsrc.org>1998-09-15 00:05:41 +0000
commitc1a7c29b991868c6055ca13e06bcfbfcdf710b72 (patch)
tree80128a1dcea4602075339929f00a8477fd3c1c81 /games/xsoldier/patches
parent031d9f40a968349a789eedc60c51b70c247dcbd9 (diff)
downloadpkgsrc-c1a7c29b991868c6055ca13e06bcfbfcdf710b72.tar.gz
Woo-Hoo.. last one.. /var/games scorefile handling
Diffstat (limited to 'games/xsoldier/patches')
-rw-r--r--games/xsoldier/patches/patch-aa35
1 files changed, 26 insertions, 9 deletions
diff --git a/games/xsoldier/patches/patch-aa b/games/xsoldier/patches/patch-aa
index be1443a24fb..dbe5e32b367 100644
--- a/games/xsoldier/patches/patch-aa
+++ b/games/xsoldier/patches/patch-aa
@@ -1,22 +1,39 @@
-$NetBSD: patch-aa,v 1.2 1998/08/07 10:40:46 agc Exp $
-
+$NetBSD: patch-aa,v 1.3 1998/09/15 00:05:41 garbled Exp $
--- Imakefile.orig Fri Feb 28 08:48:57 1997
-+++ Imakefile Sat Aug 1 01:40:03 1998
-@@ -13,5 +13,5 @@
++++ Imakefile Mon Sep 14 16:52:46 1998
+@@ -11,12 +11,12 @@
+
+ /* インストールディレクトリ */
/* 書き込み権限が無いとインストール出来ません.=> 遊べない.(^^; */
-PIXMAPDIR = /usr/local/games/lib/xsoldier
-SCOREDIR = /usr/local/games/lib/xsoldier
-BINDIR = /usr/local/games
+PIXMAPDIR = $(X11BASE)/share/xsoldier
-+SCOREDIR = $(X11BASE)/share/xsoldier
++SCOREDIR = /var/games/
+BINDIR = $(X11BASE)/bin
-@@ -97,3 +97,3 @@
- else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi
+ /* スコアファイル名.SCOREDIR 以下に置かれます. */
+-SCOREFILE = .scorefile
++SCOREFILE = xsoldier
+
+
+ /* ----------------------------------------------------------------------- */
+@@ -93,9 +93,9 @@
+ @echo "install update . done"
+
+ install.score::
+- @if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \
+- else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi
- $(INSTALL) -c -m 600 scorefile.txt $(SCOREDIR)/$(SCOREFILE)
-+ $(INSTALL) -c -g games -o bin -m 664 scorefile.txt $(SCOREDIR)/$(SCOREFILE)
++ @if [ ! -e $(SCOREDIR)/$(SCOREFILE) ]; then \
++ $(INSTALL) -c -g games -o bin -m 664 scorefile.txt $(SCOREDIR)/$(SCOREFILE) ; \
++ fi
@echo "install score . done"
-@@ -111,3 +111,3 @@
+
+ install.pixmap::
+@@ -109,5 +109,5 @@
+ install.bin::
+ @if [ -d $(BINDIR) ]; then set +x; \
else (set -x; $(MKDIRHIER) $(BINDIR)); fi
- $(INSTALL) -c -m 4755 $(PROGRAM) $(BINDIR)/$(PROGRAM)
+ $(INSTALL) -c -o bin -g games -m 2755 $(PROGRAM) $(BINDIR)/$(PROGRAM)