[Opensrf-commits] r1417 - branches/sboyette/src/gateway
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 13 13:47:20 EDT 2008
Author: sboyette
Date: 2008-08-13 13:47:17 -0400 (Wed, 13 Aug 2008)
New Revision: 1417
Modified:
branches/sboyette/src/gateway/Makefile.am
Log:
won't append fake LoadModule ad infinitum anymore
Modified: branches/sboyette/src/gateway/Makefile.am
===================================================================
--- branches/sboyette/src/gateway/Makefile.am 2008-08-13 17:27:22 UTC (rev 1416)
+++ branches/sboyette/src/gateway/Makefile.am 2008-08-13 17:47:17 UTC (rev 1417)
@@ -18,7 +18,10 @@
AM_LDFLAGS = -L$(LIBDIR) -L at top_builddir@/src/libopensrf
install-exec-local:
- echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" >> `apxs2 -q SYSCONFDIR`/httpd.conf
+ if [ ! "$$(grep mod_placeholder `apxs2 -q SYSCONFDIR`/httpd.conf)" ]; \
+ then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \
+ >> `apxs2 -q SYSCONFDIR`/httpd.conf; \
+ fi
$(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_json_gateway.c apachetools.c apachetools.h libopensrf.so
$(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_http_translator.c apachetools.c apachetools.h libopensrf.so
$(APXS2) -i -a @srcdir@/osrf_json_gateway.la
More information about the opensrf-commits
mailing list