mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-12 21:48:25 +03:00
15 lines
495 B
Bash
Executable File
15 lines
495 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
cd "$(dirname "$0")"
|
|
ln -s -f $(pwd)/pygments/catala_fr.py pygments/pygments/pygments/lexers/catala_fr.py
|
|
if grep -q "CatalaFrLexer" pygments/pygments/pygments/lexers/_mapping.py
|
|
then
|
|
:
|
|
else
|
|
sed -i "78i\\ 'CatalaFrLexer': ('pygments.lexers.catala_fr', 'CatalaFr', ('catala_fr'), ('*.catala_fr'), ('text/x-catala-fr',))," pygments/pygments/pygments/lexers/_mapping.py
|
|
fi
|
|
cd pygments/pygments
|
|
virtualenv -p python3 env
|
|
source env/bin/activate
|
|
python3 setup.py install
|