texmf-dist/source/support/optexcount/install.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | cp src/optexcount.py src/__main__.py |
| 5 | zip -j optexcount.zip src/*.py 1> /dev/null |
| 6 | echo '#!/usr/bin/env python3' | cat - optexcount.zip > optexcount |
| 7 | chmod +x optexcount |
| 8 | rm optexcount.zip src/__main__.py |
| 9 | mv optexcount /usr/bin/optexcount |
| 10 | echo 'OpTeXcount successfully installed!' |