PageRenderTime 40ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/src/bin/phplemon

https://bitbucket.org/mazzarelli/trekel
Shell | 34 lines | 6 code | 4 blank | 24 comment | 0 complexity | ca055289ec280929bb448117e8267bff MD5 | raw file
  1. #!/bin/sh
  2. # Copyright 2010 Joey Mazzarelli. All rights reserved.
  3. #
  4. # Redistribution and use in source, with or without modification, is
  5. # permitted provided that the following condition is met:
  6. #
  7. # 1. Redistributions of source code must retain the above copyright
  8. # notice, this list of conditions and the following disclaimer.
  9. #
  10. # THIS SOFTWARE IS PROVIDED BY JOEY MAZZARELLI ``AS IS'' AND ANY EXPRESS
  11. # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  12. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  13. # DISCLAIMED. IN NO EVENT SHALL JOEY MAZZARELLI OR CONTRIBUTORS BE LIABLE
  14. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  15. # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  16. # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  17. # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  18. # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  19. # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  20. # THE POSSIBILITY OF SUCH DAMAGE.
  21. #
  22. # The views and conclusions contained in the software and documentation
  23. # are those of the authors and should not be interpreted as representing
  24. # official policies, either expressed or implied, of Joey Mazzarelli.
  25. SELF=$(readlink -f $0)
  26. CURR=${SELF%/*}
  27. ROOT=${CURR%%/src/bin*}
  28. INCDIR="${ROOT}/src/lib/"
  29. INCARG="-d include_path=${INCDIR}"
  30. exec php -C -q $INCARG -d open_basedir="" -d safe_mode=0 -d register_argc_argv="On" -d auto_prepend_file="" -d auto_append_file="" $INCDIR/PHP/ParserGenerator/cli.php "$@"