]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
fix two uses of cd
authorRudolf Polzer <divverent@alientrap.org>
Sat, 21 Apr 2012 13:54:17 +0000 (15:54 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 21 Apr 2012 13:54:17 +0000 (15:54 +0200)
Makefile

index 69484068643d042a9beebac5763a0932928e0e49..18861e38c146f17c679e5961830d5f19f4cbf80e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ install-data-git: all-git
        $(RM) -rf $(DESTDIR)$(LIBDIR)/data
        $(INSTALL) -d $(DESTDIR)$(LIBDIR)/data
        for p in data/*.pk3; do $(INSTALL) $$p $(DESTDIR)$(LIBDIR)/$$p || exit 1; done
        $(RM) -rf $(DESTDIR)$(LIBDIR)/data
        $(INSTALL) -d $(DESTDIR)$(LIBDIR)/data
        for p in data/*.pk3; do $(INSTALL) $$p $(DESTDIR)$(LIBDIR)/$$p || exit 1; done
-       for p in data/*.pk3dir; do ( cd $$p; $(ZIP) -r $(DESTDIR)$(LIBDIR)/$${p%dir} * ) || exit 1; done
+       for p in data/*.pk3dir; do ( cd $$p && $(ZIP) -r $(DESTDIR)$(LIBDIR)/$${p%dir} * ) || exit 1; done
 
 .PHONY: install-data-zip-binary
 install-data-zip-binary: all-zip-binary
 
 .PHONY: install-data-zip-binary
 install-data-zip-binary: all-zip-binary
@@ -76,7 +76,7 @@ install-data-zip-source: all-zip-source
        $(RM) -rf $(DESTDIR)$(LIBDIR)/data
        $(INSTALL) -d $(DESTDIR)$(LIBDIR)/data
        for p in data/*.pk3; do $(INSTALL) $$p $(DESTDIR)$(LIBDIR)/$$p || exit 1; done
        $(RM) -rf $(DESTDIR)$(LIBDIR)/data
        $(INSTALL) -d $(DESTDIR)$(LIBDIR)/data
        for p in data/*.pk3; do $(INSTALL) $$p $(DESTDIR)$(LIBDIR)/$$p || exit 1; done
-       for p in data/xonotic-*-data*.pk3; do cd source; $(ZIP) $(DESTDIR)$(LIBDIR)/$$p progs.dat menu.dat csprogs.dat; done
+       for p in data/xonotic-*-data*.pk3; do cd source && $(ZIP) $(DESTDIR)$(LIBDIR)/$$p progs.dat menu.dat csprogs.dat; done
 
 
 .PHONY: install-engine
 
 
 .PHONY: install-engine