Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
if [ ! -d "python-ident-rename" ]; then
# clone repository and build executable
git clone https://github.com/tonymorris/python-ident-rename.git
cd python-ident-rename
cabal update
cabal new-build
cd ..
fi
# run
`find python-ident-rename/dist* -executable -type f -name python-ident-rename` "$@"
# Usage: python-ident-rename (-f|--filename ARG) (-x|--from ARG) (-y|--to ARG)
# [-x|--from ARG] [-y|--to ARG] [-o|--output ARG]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment