#!/bin/sh # (C) 2011 by Eugeniy Mikhailov, # vim:set ft=tcl: \ exec tclsh "$0" "$@" package require sqlite3 package require md5 source ./GradeBook_lib.tcl if { $argc < 2 } { puts {Usage:} puts "$argv0 database_name instructor_login \[instructor_fname\] \[instructor_lname\]" exit } set dbfile [lindex $argv 0] set instructor_login [lindex $argv 1] if { $argc >= 3 } { set instructor_fname [lindex $argv 2] } else { set instructor_fname {} } if { $argc >= 4 } { set instructor_lname [lindex $argv 3] } else { set instructor_lname {} } sqlite3 db $dbfile CreateCourseInfoTable db CreateGradesTable db CreateAccessRightsTable db CreateGradesCategoryTable db #AddUserNonWeb first_name last_name user_name group_name id_number section_num i AddUserNonWeb $instructor_fname $instructor_lname $instructor_login instructor # reasonable defaults for hidden columns set instructor_hidden_columns [list UserHiddenColums UserHiddenGroups IdNum] UpdateColValue4GroupNameNonWeb UserHiddenColums instructor $instructor_hidden_columns # vim: ts=2 sw=2 foldmethod=indent: