view scripts/convert-projects @ 526:31282f97b807

Reworked the --help function * More information about the templates * Information about the templates and how to create them added to the README file.
author Magnus Schieder <mschieder@intevation.de>
date Tue, 22 Jan 2019 15:35:28 +0100
parents 20fde79f8e12
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;
}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)