#!/usr/bin/python3

##
# Copyright (c) 2010 Sprymix Inc.
# All rights reserved.
#
# See LICENSE for details.
##


import os
import sys

import semantix.shell
import semantix.utils.shell


sys.path.insert(0, os.path.dirname(__file__))

def run(argv):
    return semantix.utils.shell.main(argv)

if __name__ == '__main__':
    sys.exit(run(sys.argv))

Replace the clumsy Makefile with proper command infrastructure
Replace the clumsy Makefile with proper command infrastructure

Semantix now has a proper infrastructure for shell commands, complete
with argument passing and complex sub-commands.  Every semantix-based
project (including semantix itself) will how have an executable script
'sx.py' in the root of that project that will serve as an entry point
for semantix commands.

Additionally, there is a new convenience tool `sx' (in semantix/tools)
that automatically finds and executes sx.py when run from within a
project directory hierarchy.  Place it into your PATH.

So instead of `make test' one now writes `sx test' or
`./sx.py test'
