(svn r7782) -Fix (r7779): do really check whether there are files to copy in the directories, not just test whether the directories exist.
authorrubidium
Wed, 03 Jan 2007 00:02:18 +0000
changeset 5748 ac3ed93575ea
parent 5747 de8028eb52b4
child 5749 be31014847c4
(svn r7782) -Fix (r7779): do really check whether there are files to copy in the directories, not just test whether the directories exist.
Makefile.in
--- a/Makefile.in	Tue Jan 02 23:19:52 2007 +0000
+++ b/Makefile.in	Wed Jan 03 00:02:18 2007 +0000
@@ -171,10 +171,10 @@
 	$(Q)cp "$(ROOT_DIR)/media/openttd.64.png" "$(BUNDLE_DIR)/media/"
 	$(Q)cp "$(ROOT_DIR)/media/openttd.32.xpm" "$(BUNDLE_DIR)/media/"
 	$(Q)cp "$(ROOT_DIR)/media/openttd.32.bmp" "$(BUNDLE_DIR)/media/"
-ifeq ($(shell if test -d "$(BIN_DIR)/scenario"; then echo 1; fi), 1)
+ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/\"*.scn 2> /dev/null`"; then echo 1; fi), 1)
 	$(Q)cp "$(BIN_DIR)/scenario/"*.scn        "$(BUNDLE_DIR)/scenario/"
 endif
-ifeq ($(shell if test -d "$(BIN_DIR)/scenario/heightmaps"; then echo 1; fi), 1)
+ifeq ($(shell if test -n "`ls -l \"$(BIN_DIR)/scenario/heightmaps/\"* 2>/dev/null`"; then echo 1; fi), 1)
 	$(Q)cp "$(BIN_DIR)/scenario/heightmaps/"* "$(BUNDLE_DIR)/scenario/heightmap/"
 endif