Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/Legilibre/Legit.jl
- Owner: Legilibre
- License: other
- Created: 2015-06-06T08:33:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-10T10:26:22.000Z (about 9 years ago)
- Last Synced: 2024-06-22T23:50:52.286Z (3 months ago)
- Language: Julia
- Size: 184 KB
- Stars: 19
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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:mastergit remote add github [email protected]:etalab/codes-juridiques-francais.git
git push -u github +reordered:masterTo 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:mastergit remote add github [email protected]:etalab/lois-non-codifiees-et-reglements-francais.git
git push -u github +reordered:masterTo see the generated Git repository: https://git.framasoft.org/etalab/lois-non-codifiees-et-reglements-francais/tree/master.