You are viewing a plain text version of this content. The canonical link for it is here.
Posted to tashi-commits@incubator.apache.org by rg...@apache.org on 2010/12/27 21:37:41 UTC

svn commit: r1053199 - /incubator/tashi/branches/zoni-dev/trunk/Makefile

Author: rgass
Date: Mon Dec 27 21:37:41 2010
New Revision: 1053199

URL: http://svn.apache.org/viewvc?rev=1053199&view=rev
Log:
adding usr/local/zoni target to create a file /usr/local/bin/zoni with PYTHONPATH setup
Not adding it as default since this requires root to execute it 

Modified:
    incubator/tashi/branches/zoni-dev/trunk/Makefile

Modified: incubator/tashi/branches/zoni-dev/trunk/Makefile
URL: http://svn.apache.org/viewvc/incubator/tashi/branches/zoni-dev/trunk/Makefile?rev=1053199&r1=1053198&r2=1053199&view=diff
==============================================================================
--- incubator/tashi/branches/zoni-dev/trunk/Makefile (original)
+++ incubator/tashi/branches/zoni-dev/trunk/Makefile Mon Dec 27 21:37:41 2010
@@ -110,8 +110,12 @@ rmdoc:
 bin/zoni-cli.py:
 	@echo Symlinking in zoni-cli...
 	(cd bin; ln -s ../src/zoni/client/zoni-cli.py .)
+usr/local/bin/zoni:
+	@echo Creating /usr/local/bin/zoni
+	(echo -e '#!/bin/bash\nPYTHONPATH=$(shell pwd)/src $(shell pwd)/bin/zoni-cli.py $$*' > /usr/local/bin/zoni; chmod 755 /usr/local/bin/zoni)
 rmzoni-cli:
 	if test -e bin/zoni-cli.py; then echo Removing zoni-cli symlink...; rm bin/zoni-cli.py; fi
+	if test -e /usr/local/bin/zoni; then echo Removing zoni...; rm /usr/local/bin/zoni; fi
 
 ## for now only print warnings having to do with bad indentation. pylint doesn't make it easy to enable only 1,2 checks
 disabled_warnings=$(shell pylint --list-msgs|grep :W0| awk -F: '{ORS=","; if ($$2 != "W0311" && $$2 != "W0312"){ print $$2}}')