]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
show error about missing gamepack
authorRudolf Polzer <rpolzer@grawp.div0.qc.to>
Sun, 14 Feb 2010 19:08:59 +0000 (20:08 +0100)
committerRudolf Polzer <rpolzer@grawp.div0.qc.to>
Sun, 14 Feb 2010 19:08:59 +0000 (20:08 +0100)
Makefile

index 3bfdfa1982664ee1c000d713784b714c5cd47c54..376b619c41c9dbfc89f7aeb83046f74aa9b6b494 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -958,7 +958,13 @@ install-data: binaries
        [ "$(OS)" != "Darwin" ] || $(CP_R) setup/data/osx/NetRadiant.app/* $(INSTALLDIR_BASE)/NetRadiant.app/
        set -ex; \
        for GAME in games/*; do \
-               CP="$(CP)" CP_R="$(CP_R)" $(SH) install-gamepack.sh "$$GAME" "$(INSTALLDIR)"; \
+               if [ "$$GAME" = "games/*" ]; then \
+                       $(ECHO) "Game packs not found, please run"; \
+                       $(ECHO) "  ./download-gamepacks.sh"; \
+                       $(ECHO) "and then try again!"; \
+               else \
+                       CP="$(CP)" CP_R="$(CP_R)" $(SH) install-gamepack.sh "$$GAME" "$(INSTALLDIR)"; \
+               fi; \
        done
        $(ECHO) $(RADIANT_MINOR_VERSION) > $(INSTALLDIR)/RADIANT_MINOR
        $(ECHO) $(RADIANT_MAJOR_VERSION) > $(INSTALLDIR)/RADIANT_MAJOR