[open-ils-commits] r8340 - in branches/acq-experiment: . Open-ILS/src Open-ILS/src/python

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jan 6 20:25:31 EST 2008


Author: dbs
Date: 2008-01-06 20:01:19 -0500 (Sun, 06 Jan 2008)
New Revision: 8340

Modified:
   branches/acq-experiment/Open-ILS/src/Makefile
   branches/acq-experiment/Open-ILS/src/python/Makefile
   branches/acq-experiment/install.sh
Log:
Enable Python build with regular user to avoid perm problems at clean time.


Modified: branches/acq-experiment/Open-ILS/src/Makefile
===================================================================
--- branches/acq-experiment/Open-ILS/src/Makefile	2008-01-07 00:34:25 UTC (rev 8339)
+++ branches/acq-experiment/Open-ILS/src/Makefile	2008-01-07 01:01:19 UTC (rev 8340)
@@ -8,7 +8,7 @@
 
 export STAFF_CLIENT_BUILD_ID = `/bin/cat ../xul/staff_client/build/BUILD_ID`
 
-all:  c_apps client-xul mod_xmlent
+all:  c_apps client-xul mod_xmlent python-build
 
 install:	perl-install python-install web-install server-xul string-templates-install xsl-install c_apps-install circ_rules-install offline-install storage-bootstrap cgi-bootstrap
 
@@ -138,6 +138,12 @@
 	mkdir -p $(TEMPLATEDIR)
 	cp -r templates/marc $(TEMPLATEDIR)
 
+# ------------------------------------------------------------------------------
+
+python-build:
+	@echo $@
+	make -C python build
+
 # -----------------------------------------------------------------------------------
 
 python-install:

Modified: branches/acq-experiment/Open-ILS/src/python/Makefile
===================================================================
--- branches/acq-experiment/Open-ILS/src/python/Makefile	2008-01-07 00:34:25 UTC (rev 8339)
+++ branches/acq-experiment/Open-ILS/src/python/Makefile	2008-01-07 01:01:19 UTC (rev 8340)
@@ -1,16 +1,22 @@
-# vim:noet:ts=4
+# makefile for OpenSRF Python modules and scripts
 
-install: python-install
-
-python-build:
+# ------------------------------------------------------------------------------
+# BUILD
+# ------------------------------------------------------------------------------
+build:
 	@echo $@
 	python setup.py build
 
-python-install:
+# ------------------------------------------------------------------------------
+# INSTALL
+# ------------------------------------------------------------------------------
+install:	build
 	@echo $@
 	python setup.py install
 
+# ------------------------------------------------------------------------------
+# CLEAN	
+# ------------------------------------------------------------------------------
 clean:
-	@echo $@
-	rm -fr build
-	find . -name "*.pyc" -exec rm -f {} \;
+	/bin/rm -rf build 
+

Modified: branches/acq-experiment/install.sh
===================================================================
--- branches/acq-experiment/install.sh	2008-01-07 00:34:25 UTC (rev 8339)
+++ branches/acq-experiment/install.sh	2008-01-07 01:01:19 UTC (rev 8340)
@@ -139,7 +139,10 @@
 				;;
 
 			"openils_core" )
-				if building; then $MAKE -C "$OPENILSDIR" "c_apps"; fi;
+				if building; then 
+					$MAKE -C "$OPENILSDIR" "c_apps";
+					$MAKE -C "$OPENILSDIR" "python-build";
+				fi;
 				if installing; then 
 					$MAKE -C "$OPENILSDIR" "perl-install"; 
 					$MAKE -C "$OPENILSDIR" "python-install"; 



More information about the open-ils-commits mailing list