Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Legilibre/Legit.jl

Convert French law in LEGI database ("Codes, lois et règlements consolidés") to Git & Markdown.
https://github.com/Legilibre/Legit.jl

Last synced: 18 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# Legit

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]/

## Requirements

- [Julia language](http://julialang.org/)

## 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.