diff options
author | Ankit Jain <radical@corewars.org> | 2008-03-25 23:26:59 +0300 |
---|---|---|
committer | Ankit Jain <radical@corewars.org> | 2008-03-25 23:26:59 +0300 |
commit | f53ec4a499dabb88f6d89298d98ad8be961843f7 (patch) | |
tree | ae567866d37c4b7b3e1f869b6e9c724a821c6020 /main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets | |
parent | 14fe9f6d32f77093ef4efcebbaa7b9dab516e76d (diff) |
Add support for handling paths containing spaces.
Fix bug #353979.
* SimpleMakefileHandler.cs (EscapeSpace): New.
Escape and quote paths appropriately.
* SolutionMakefileHandler.cs: Include Makefile.include also.
* templates/Makefile.noauto.project.template:
* templates/Makefile.am.project.template: Use emit_resgen_targets macro.
Use '$(shell dirname ' instead of '$(dir ' as it can't handle paths with
spaces.
* templates/Makefile.include:
* templates/make-dist.targets:
* templates/Makefile.solution.template:
* templates/rules.make: Add the necessary changes for the support.
svn path=/trunk/monodevelop/; revision=98993
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets')
-rw-r--r-- | main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets b/main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets index cec5f6ac71..2227e45505 100644 --- a/main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets +++ b/main/src/addins/MonoDevelop.Autotools/templates/make-dist.targets @@ -2,17 +2,17 @@ dist: $(CONFIG_MAKE) rm -rf $(PACKAGE)-$(VERSION) mkdir $(PACKAGE)-$(VERSION) make pre-dist-hook distdir=$$distdir - for dir in $(SUBDIRS); do \ + for dir in $(call quote_each,SUBDIRS); do \ pkgdir=`pwd`/$(PACKAGE)-$(VERSION); \ - mkdir $$pkgdir/$$dir || true; \ + mkdir "$$pkgdir/$$dir" || true; \ case $$dir in \ - .) make dist-local distdir=$$pkgdir || exit 1;; \ - *) (cd $$dir; make dist-local distdir=$$pkgdir/$$dir) || exit 1;; \ + .) make dist-local "distdir=$$pkgdir" || exit 1;; \ + *) (cd "$$dir"; make dist-local "distdir=$$pkgdir/$$dir") || exit 1;; \ esac \ done (make dist-local distdir=$(PACKAGE)-$(VERSION)) make - make post-dist-hook distsir=$$distdir + make post-dist-hook "distsir=$$distdir" tar czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) rm -rf $(PACKAGE)-$(VERSION) @echo "==========================================" |