equal
deleted
inserted
replaced
210 $(Q)cp "$(BIN_DIR)/scenario/"*.scn "$(BUNDLE_DIR)/scenario/" |
210 $(Q)cp "$(BIN_DIR)/scenario/"*.scn "$(BUNDLE_DIR)/scenario/" |
211 endif |
211 endif |
212 ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/heightmaps/\"* 2>/dev/null`"; then echo 1; fi), 1) |
212 ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/heightmaps/\"* 2>/dev/null`"; then echo 1; fi), 1) |
213 $(Q)cp "$(BIN_DIR)/scenario/heightmaps/"* "$(BUNDLE_DIR)/scenario/heightmap/" |
213 $(Q)cp "$(BIN_DIR)/scenario/heightmaps/"* "$(BUNDLE_DIR)/scenario/heightmap/" |
214 endif |
214 endif |
|
215 ifeq ($(TTD), openttd.exe) |
|
216 $(Q)unix2dos "$(BUNDLE_DIR)/docs/"* "$(BUNDLE_DIR)/readme.txt" "$(BUNDLE_DIR)/COPYING" |
|
217 endif |
215 |
218 |
216 ### Packing the current bundle into several compressed file formats ### |
219 ### Packing the current bundle into several compressed file formats ### |
217 # |
220 # |
218 # Zips & dmgs do not contain a root folder, i.e. they have files in the root of the zip/dmg. |
221 # Zips & dmgs do not contain a root folder, i.e. they have files in the root of the zip/dmg. |
219 # gzip, bzip2 and lha archives have a root folder, with the same name as the bundle. |
222 # gzip, bzip2 and lha archives have a root folder, with the same name as the bundle. |
246 $(Q)cd "$(BUNDLES_DIR)/.lha" && lha ao6 "$(BUNDLES_DIR)/$(BUNDLE_NAME).lha" "$(BUNDLE_NAME)" |
249 $(Q)cd "$(BUNDLES_DIR)/.lha" && lha ao6 "$(BUNDLES_DIR)/$(BUNDLE_NAME).lha" "$(BUNDLE_NAME)" |
247 $(Q)rm -rf "$(BUNDLES_DIR)/.lha" |
250 $(Q)rm -rf "$(BUNDLES_DIR)/.lha" |
248 |
251 |
249 bundle_dmg: bundle |
252 bundle_dmg: bundle |
250 @echo '[BUNDLE] Creating $(BUNDLE_NAME).dmg' |
253 @echo '[BUNDLE] Creating $(BUNDLE_NAME).dmg' |
251 $(Q)mkdir -p "$(BUNDLES_DIR)" |
254 $(Q)mkdir -p "$(BUNDLES_DIR)/OpenTTD $(REV)" |
252 $(Q)hdiutil create -ov -format UDZO -srcfolder "$(BUNDLE_DIR)" "$(BUNDLES_DIR)/$(BUNDLE_NAME).dmg" |
255 $(Q)cp -R "$(BUNDLE_DIR)/" "$(BUNDLES_DIR)/OpenTTD $(REV)" |
|
256 $(Q)hdiutil create -ov -format UDZO -srcfolder "$(BUNDLES_DIR)/OpenTTD $(REV)" "$(BUNDLES_DIR)/$(BUNDLE_NAME).dmg" |
|
257 $(Q)rm -fr "$(BUNDLES_DIR)/OpenTTD $(REV)" |
253 |
258 |
254 ifdef OSXAPP |
259 ifdef OSXAPP |
255 install: |
260 install: |
256 @echo '[INSTALL] Cannot install the OSX Application Bundle' |
261 @echo '[INSTALL] Cannot install the OSX Application Bundle' |
257 else |
262 else |