2008-10-27 | Paul Boddie | file changeset files shortlog | Changed the script to use more widely available Python features. Put the main program in a function to permit easier program invocation. |
paul@3 | 1 | #!/bin/sh |
paul@3 | 2 | |
paul@14 | 3 | # Python 2.4 and later: |
paul@14 | 4 | #python -m astgrep $* |
paul@14 | 5 | |
paul@14 | 6 | # Python 2.0 and later: |
paul@14 | 7 | python -c "import astgrep; astgrep.run_command()" $* |