From f7b5e8c8e17b9c8f607caddbc74c3a500a87c6a5 Mon Sep 17 00:00:00 2001
From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Fri, 5 Feb 2010 18:54:03 +0000
Subject: [PATCH] Ensure target directory exists before creating links therein

Thanks to Warren Layton for spotting this in a fresh install


git-svn-id: svn://svn.open-ils.org/ILS/trunk@15458 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/web/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Open-ILS/web/Makefile.am b/Open-ILS/web/Makefile.am
index b3851b3652..5ccd64121b 100644
--- a/Open-ILS/web/Makefile.am
+++ b/Open-ILS/web/Makefile.am
@@ -78,10 +78,12 @@ cgi-bootstrap:
 	chmod 755 $(DESTDIR)$(CGIDIR)/*cgi
 
 install-data-local:
+	$(MKDIR_P) $(DESTDIR)$(WEBDIR)/opac/common/js
 	for i in $(OPACJS); do \
 		cd $(DESTDIR)$(WEBDIR)/opac/common/js && \
 		rm -f `basename $$i` && $(LN_S) $$i . ; \
 	done
+	$(MKDIR_P) $(DESTDIR)$(WEBDIR)/js/dojo/opensrf
 	for i in $(JSDOJOSRF); do \
 		cd $(DESTDIR)$(WEBDIR)/js/dojo/opensrf && \
 		rm -f `basename $$i` && $(LN_S) $$i . ; \
-- 
2.11.0