LP#1778972: install templates-bootstrap by default
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 10 Sep 2020 15:46:00 +0000 (11:46 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Sat, 12 Sep 2020 15:54:18 +0000 (08:54 -0700)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Makefile.am
Open-ILS/src/Makefile.am

index a732c8e..7032ac2 100644 (file)
@@ -15,6 +15,7 @@ export ETCDIR=@sysconfdir@
 export WEBDIR=@localstatedir@/web
 export CGIDIR=@localstatedir@/cgi-bin
 export TEMPLATEDIR=@localstatedir@/templates
+export BOOTSTRAPTEMPLATEDIR=@localstatedir@/templates-bootstrap
 export UPDATESDIR=@localstatedir@/updates
 
 export datadir=@localstatedir@/data
index c7a8a42..0f86c36 100644 (file)
@@ -192,6 +192,7 @@ install-data-hook: $(OILSCORE_INST) $(OILSWEB_INST) $(OILSUPDATES_INST) $(OILSRE
 
 uninstall-hook:
        rm -R $(TEMPLATEDIR)
+       rm -R $(BOOTSTRAPTEMPLATEDIR)
        rm -R $(XSLDIR)
        rm -R $(CGIDIR)
 
@@ -262,6 +263,9 @@ ilscore-install:
        $(MKDIR_P) $(DESTDIR)$(TEMPLATEDIR)
        @echo "Installing templates to $(DESTDIR)$(TEMPLATEDIR)"
        cp -r @srcdir@/templates/* $(DESTDIR)$(TEMPLATEDIR)
+       $(MKDIR_P) $(DESTDIR)$(BOOTSTRAPTEMPLATEDIR)
+       @echo "Installing Bootstrap templates to $(DESTDIR)$(BOOTSTRAPTEMPLATEDIR)"
+       cp -r @srcdir@/templates-bootstrap/* $(DESTDIR)$(BOOTSTRAPTEMPLATEDIR)
        -@if test -d @srcdir@/data/locale; then \
                $(MKDIR_P) $(DESTDIR)$(datadir)/locale/ && \
                echo "Installing template data files to $(datadir)/locale/" && \