view contrib/convert-projects @ 47:0a0c77b8606a project-tree

#1921 Bugfix: Moving entries into projects with keys that consist of more than a single char works again.
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 15 Feb 2011 21:10:19 +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;
}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)