mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-09 22:16:10 +03:00
15 lines
492 B
Bash
15 lines
492 B
Bash
#! /usr/bin/env bash
|
|
|
|
cd "$(dirname "$0")"
|
|
ln -s -f $(pwd)/pygments/catala_en.py pygments/pygments/pygments/lexers/catala_nv.py
|
|
if grep -q "CatalaNvLexer" pygments/pygments/pygments/lexers/_mapping.py
|
|
then
|
|
:
|
|
else
|
|
sed -i "78i\\ 'CatalaEnLexer': ('pygments.lexers.catala_nv', 'CatalaNv', ('catala_nv'), ('*.catala'), ('text/x-catala-nv',))," pygments/pygments/pygments/lexers/_mapping.py
|
|
fi
|
|
cd pygments/pygments
|
|
virtualenv -p python3 env
|
|
source env/bin/activate
|
|
python3 setup.py install
|