Commit 5a9a3953 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

simplify mysql-tritonn-hooks.py.

* no need to invoke 'cd' because you are already there.
* no need to specify version for aclocal and automake, because their location should be specified by PATH environment variable.
* convert TAB to white spaces.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40089 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b78a2898
...@@ -4,21 +4,20 @@ import os ...@@ -4,21 +4,20 @@ import os
# the comand below assumes there is only one sub-directory under the # the comand below assumes there is only one sub-directory under the
# 'compile-directory', which is why the cd .../* would work. # 'compile-directory', which is why the cd .../* would work.
CMDS = """ CMDS = """
cd %s/*
libtoolize -c -f libtoolize -c -f
which aclocal-1.9 >/dev/null 2>/dev/null && aclocal-1.9 || aclocal aclocal
autoheader autoheader
which automake-1.9 >/dev/null 2>/dev/null && automake-1.9 -c -a -i || automake -c -a -i automake -c -a -i
autoconf autoconf
touch sql/sql_yacc.yy touch sql/sql_yacc.yy
""".strip() """.strip()
def pre_configure_hook(options, buildout): def pre_configure_hook(options, buildout):
os.system(CMDS % options['compile-directory']) os.system(CMDS)
def post_make_hook(options, buildout): def post_make_hook(options, buildout):
try: try:
os.mkdir("%s/var" % options['location']) os.mkdir("%s/var" % options['location'])
except OSError, e: except OSError, e:
if e.errno != errno.EEXIST: if e.errno != errno.EEXIST:
raise raise
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment