diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-02-01 09:14:10 -0600 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-02-01 09:14:10 -0600 |
commit | 100b9fd9aad33f7c126f33db3ee9ea05aefca539 (patch) | |
tree | dbaffe5d0be09a8dfd2332b9c1c6778bdc0b891d /solaris/Makefile | |
parent | 5096c67da3cee8f35733c6ef6b88f5ce55b4d34b (diff) | |
download | bcfg2-100b9fd9aad33f7c126f33db3ee9ea05aefca539.tar.gz bcfg2-100b9fd9aad33f7c126f33db3ee9ea05aefca539.tar.bz2 bcfg2-100b9fd9aad33f7c126f33db3ee9ea05aefca539.zip |
solaris: Fix build error
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'solaris/Makefile')
-rw-r--r-- | solaris/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/solaris/Makefile b/solaris/Makefile index 730505cda..bd3d097d4 100644 --- a/solaris/Makefile +++ b/solaris/Makefile @@ -1,14 +1,15 @@ #!/usr/sfw/bin/gmake +PYTHON="/opt/csw/bin/python" VERS=1.2.0pre1-1 -PYVERSION := $(shell /opt/csw/bin/python -c "import sys; print sys.version[0:3]") +PYVERSION := $(shell $(PYTHON) -c "import sys; print sys.version[0:3]") default: clean package package: -mkdir tmp tmp/bcfg2-server tmp/bcfg2 - -cd ../ && /opt/csw/bin/python setup.py install --prefix=$(PWD) - -cat bin/bcfg2 | sed -e 's!/usr/bin/python!/opt/csw/bin/python!' > bin/bcfg2.new && mv bin/bcfg2.new bin/bcfg2 + -cd ../ && $(PYTHON) setup.py install --prefix=$(PWD) + -cat bin/bcfg2 | sed -e 's!/usr/bin/python!$(PYTHON)!' > bin/bcfg2.new && mv bin/bcfg2.new bin/bcfg2 # Set python version to whichever version is installed -cat prototype.bcfg2 | sed -e 's!PYVERSION!python$(PYVERSION)!' > prototype.bcfg2.fixed -cat prototype.bcfg2-server | sed -e 's!PYVERSION!python$(PYVERSION)!' > prototype.bcfg2-server.fixed |