Convert French law in LEGI database ("Codes, lois et règlements consolidés") to Git & Markdown.
This script is highly experimental.
LEGI Files:
- https://www.data.gouv.fr/fr/datasets/legi-codes-lois-et-reglements-consolides/
- ftp://legi:[email protected]/
Generate the commits, sorted by code:
julia src/Legit.jl -d -e -l 2020-12-31 -m codes ../legi ../codes-juridiques-francais.git
Reorder the commits by dates et by messages:
julia src/LegitReorderCommits.jl ../codes-juridiques-francais.git
The above script generates a new orphan branch named "reordered".
To delete this "reordered" branch (to launch the script once again after a failure, for example):
git branch -d reordered
Push this branch to its Git repositories (as master):
git remote add framasoft [email protected]:etalab/codes-juridiques-francais.git
git push -u framasoft +reordered:master
git remote add github [email protected]:etalab/codes-juridiques-francais.git
git push -u github +reordered:master
To see the generated Git repository: https://git.framasoft.org/etalab/codes-juridiques-francais/tree/master.
To remove the remote "origin/master" branch:
git branch -rd origin/master
Generate the commits, sorted by legal document:
julia src/Legit.jl -d -e -l 2020-12-31 -m non-codes ../legi ../lois-non-codifiees-et-reglements-francais.git
Reorder the commits by dates et by messages:
julia src/LegitReorderCommits.jl ../lois-non-codifiees-et-reglements-francais.git/
Push this branch to its Git repositories (as master):
git remote add framasoft [email protected]:etalab/lois-non-codifiees-et-reglements-francais.git
git push -u framasoft +reordered:master
git remote add github [email protected]:etalab/lois-non-codifiees-et-reglements-francais.git
git push -u github +reordered:master
To see the generated Git repository: https://git.framasoft.org/etalab/lois-non-codifiees-et-reglements-francais/tree/master.