summaryrefslogtreecommitdiffstats
path: root/README.md
blob: cf832f97e1a95ec000867704cf49cea0b3f5d210 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# LibrePlanet schedule generator

## Get it

    $ git clone https://notabug.org/rsd/lpschedule-generator.git

## Setup virtual environment

Install `virtualenv` and `python-dev` package.

On a Debian based distribution, do:

    # aptitude install virtualenv python-dev

    $ cd path/to/lpschedule-generator
    $ virtualenv .

## Activate virtual environment

    $ cd path/to/lpschedule-generator
    $ source bin/activate

Heads up! Always activate the virtual environment before executing any
of the commands in the following sections.

## Install script

    $ python setup.py install

This will install the script.

## Upgrade script

    $ git pull origin master
    $ python setup.py install

## Usage

    $ lps_gen YEAR path/to/lp-schd.md > path/to/program-schedule.html

Replace `YEAR` with LP year; for example, for generating LP 2016
schedule, the command will be:

    $ lps_gen 2016 path/to/lp-schd.md > path/to/program-schedule.html