Mercurial > getan
view contrib/convert-projects @ 148:f0a2beb17f9b
Add config classes to provide keybindings
The new Config class to be able to configure getan. Until now it is only
possible to configure the Keybinding. The config is read from
$HOME/.getan/getanrc and /etc/getanrc of the first file isn't found. If both
files aren't available a default is used.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 06 Dec 2012 12:25:58 +0100 |
parents | a3fe8e4e9184 |
children |
line wrap: on
line source
#!/usr/bin/awk -f # Convert classic worklog projects file to SQL statements for inseration in the getan database. # USAGE: # ./convert-projects </PATH/TO/projects | sqlite3 time.db BEGIN { FS=":"; } /[^# \t]/ { printf "INSERT INTO projects (key, description) VALUES ('%s', '%s');\n", $1, $2; }