Skip to content

Convert French law in LEGI database ("Codes, lois et règlements consolidés") to Git & Markdown.

License

Notifications You must be signed in to change notification settings

Legilibre/Legit.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legit

Convert French law in LEGI database ("Codes, lois et règlements consolidés") to Git & Markdown.

This script is highly experimental.

LEGI Files:

Requirements

Example

Conversion of all the legal codes

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

Conversion of all the legislation that doesn't belong to legal codes

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.

About

Convert French law in LEGI database ("Codes, lois et règlements consolidés") to Git & Markdown.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages