Lines 1-5
Link Here
|
1 |
--- ./makefile.orig 2010-03-27 00:43:25.000000000 +0100 |
1 |
--- ./makefile.orig 2010-06-08 22:49:23.000000000 +0200 |
2 |
+++ ./makefile 2010-04-18 13:18:41.000000000 +0200 |
2 |
+++ ./makefile 2010-06-29 19:46:08.000000000 +0200 |
3 |
@@ -44,7 +44,7 @@ |
3 |
@@ -44,7 +44,7 @@ |
4 |
# ask for a package with convenience libraries instead -- we'll try to provide |
4 |
# ask for a package with convenience libraries instead -- we'll try to provide |
5 |
# them somewhere in the near future. |
5 |
# them somewhere in the near future. |
Lines 41-51
Link Here
|
41 |
RM = rm -f |
41 |
RM = rm -f |
42 |
COPY = cp |
42 |
COPY = cp |
43 |
COPY_R = cp -r |
43 |
COPY_R = cp -r |
44 |
@@ -268,9 +280,10 @@ |
44 |
@@ -273,7 +285,7 @@ |
45 |
|
45 |
MCHMOD_LOGS := 664 |
46 |
# Permissions to set on the save directory. |
|
|
47 |
MCHMOD_SAVEDIR := 775 |
48 |
+MCHMOD_LOGS := 664 |
49 |
|
46 |
|
50 |
# The user:group to install the game as. |
47 |
# The user:group to install the game as. |
51 |
-INSTALL_UGRP := games:games |
48 |
-INSTALL_UGRP := games:games |
Lines 53-59
Link Here
|
53 |
|
50 |
|
54 |
chroot_prefix := |
51 |
chroot_prefix := |
55 |
prefix := |
52 |
prefix := |
56 |
@@ -386,25 +399,34 @@ |
53 |
@@ -389,25 +401,34 @@ |
57 |
endif |
54 |
endif |
58 |
endif |
55 |
endif |
59 |
|
56 |
|
Lines 103-109
Link Here
|
103 |
endif |
100 |
endif |
104 |
|
101 |
|
105 |
RLTILES = rltiles |
102 |
RLTILES = rltiles |
106 |
@@ -476,11 +498,13 @@ |
103 |
@@ -479,11 +500,13 @@ |
107 |
|
104 |
|
108 |
endif # TILES |
105 |
endif # TILES |
109 |
|
106 |
|
Lines 117-123
Link Here
|
117 |
CFOTHERS_L = $(EXTERNAL_FLAGS_L) $(EXTRA_FLAGS) $(DEFINES) $(SDL_CFLAGS) |
114 |
CFOTHERS_L = $(EXTERNAL_FLAGS_L) $(EXTRA_FLAGS) $(DEFINES) $(SDL_CFLAGS) |
118 |
|
115 |
|
119 |
ifndef NO_LUA_BINDINGS |
116 |
ifndef NO_LUA_BINDINGS |
120 |
@@ -519,6 +543,7 @@ |
117 |
@@ -522,6 +545,7 @@ |
121 |
NO_OPTIMIZE=YesPlease |
118 |
NO_OPTIMIZE=YesPlease |
122 |
endif |
119 |
endif |
123 |
|
120 |
|
Lines 125-131
Link Here
|
125 |
ifdef FULLDEBUG |
122 |
ifdef FULLDEBUG |
126 |
DEFINES += -DFULLDEBUG |
123 |
DEFINES += -DFULLDEBUG |
127 |
endif |
124 |
endif |
128 |
@@ -544,6 +569,11 @@ |
125 |
@@ -547,6 +571,11 @@ |
129 |
CFWARN_L += -Wno-uninitialized |
126 |
CFWARN_L += -Wno-uninitialized |
130 |
endif |
127 |
endif |
131 |
endif |
128 |
endif |
Lines 137-152
Link Here
|
137 |
|
134 |
|
138 |
ifneq ($(strip $(chroot_prefix)),) |
135 |
ifneq ($(strip $(chroot_prefix)),) |
139 |
USE_CHROOT=YesPlease |
136 |
USE_CHROOT=YesPlease |
140 |
@@ -756,7 +786,7 @@ |
137 |
@@ -756,10 +785,10 @@ |
141 |
SRC_VERSION := $(shell git describe --tags --long 2>/dev/null || cat util/release_ver) |
138 |
|
|
|
139 |
GAME_DEPENDS := $(DESTTILEFILES) $(OBJECTS) $(EXTRA_OBJECTS) $(CONTRIB_LIBS) |
140 |
SRC_PKG_BASE := stone_soup |
141 |
-SRC_VERSION := $(shell git describe --tags --long 2>/dev/null || cat util/release_ver) |
142 |
+SRC_VERSION := $(cat util/release_ver) |
142 |
|
143 |
|
143 |
# when making release builds, use just the bare tag |
144 |
# when making release builds, use just the bare tag |
144 |
-SRC_VERSION_SHORT := $(shell git describe --tags 2>/dev/null) |
145 |
-SRC_VERSION_SHORT := $(shell git describe --tags 2>/dev/null) |
145 |
+SRC_VERSION_SHORT := $(shell git describe --tags 2>/dev/null || cat util/release_ver) |
146 |
+SRC_VERSION_SHORT := $(cat util/release_ver) |
146 |
ifneq (,$(SRC_VERSION_SHORT)) |
147 |
ifneq (,$(SRC_VERSION_SHORT)) |
147 |
ifeq (,$(findstring -,$(SRC_VERSION_SHORT))) |
148 |
ifeq (,$(findstring -,$(SRC_VERSION_SHORT))) |
148 |
SRC_VERSION := $(SRC_VERSION_SHORT) |
149 |
SRC_VERSION := $(SRC_VERSION_SHORT) |
149 |
@@ -907,9 +937,11 @@ |
150 |
@@ -910,9 +939,11 @@ |
150 |
$(COPY) dat/tiles/VeraMono.ttf $(datadir_fp)/dat/tiles/ |
151 |
$(COPY) dat/tiles/VeraMono.ttf $(datadir_fp)/dat/tiles/ |
151 |
endif |
152 |
endif |
152 |
endif |
153 |
endif |
Lines 158-169
Link Here
|
158 |
ifneq ($(SAVEDIR),) |
159 |
ifneq ($(SAVEDIR),) |
159 |
mkdir -p $(savedir_fp)/saves |
160 |
mkdir -p $(savedir_fp)/saves |
160 |
ifneq ($(patsubst /var/%,%,$(savedir_fp)),$(savedir_fp)) |
161 |
ifneq ($(patsubst /var/%,%,$(savedir_fp)),$(savedir_fp)) |
161 |
@@ -924,6 +956,8 @@ |
|
|
162 |
$(CHOWN) -R $(INSTALL_UGRP) $(savedir_fp) || true |
163 |
$(CHMOD) $(MCHMOD_SAVEDIR) $(savedir_fp) || true |
164 |
$(CHMOD) $(MCHMOD_SAVEDIR) $(savedir_fp)/saves || true |
165 |
+ $(CHMOD) $(MCHMOD_LOGS) $(savedir_fp)/saves/logfile || true |
166 |
+ $(CHMOD) $(MCHMOD_LOGS) $(savedir_fp)/saves/scores || true |
167 |
$(CHMOD) $(MCHMOD_SAVEDIR) $(savedir_fp)/morgue || true |
168 |
endif |
169 |
endif |