[system] / trunk / webwork2 / bin Repository:
ViewVC logotype

Log of /trunk/webwork2/bin

View Directory Listing Directory Listing


Sticky Revision:

Revision 3392 - Directory Listing
Modified Wed Jul 20 18:28:55 2005 UTC (14 years, 7 months ago) by gage
Fixed error that kept the script from working on courses whose
names contained an underscore.

Added `   ` around course names to handle courses whose names
have hyphens in them (and other weird characters)

Added print comments so that you see a running commentary of what
is being changed.  Once this script is debugged we might want
to turn these off.

Revision 3388 - Directory Listing
Modified Mon Jul 18 23:10:35 2005 UTC (14 years, 7 months ago) by glarose
Add command-line utility to update sql and sql_single databases to include
gateway fields.  Use: wwdb_addgw [-h] [sql|sql_single]

Adds fields to the set and set_user tables in the WeBWorK mysql databases
that are required for the gateway module.  The script prompts for which
courses to modify.  Adding gateway database fields to existing courses
should have no effect on those courses, even if they are running under a
non-gateway aware version of the WeBWorK system.  (I haven't rigorously
tested this.)

If -h is supplied, the script hides the mysql password when it prompts for
it (this assumes that a Unix based stty -echo works).  If sql or sql_single
are supplied, they become the default database format.

Note that this has been tested, but not rigorously.  Please let me know
if you find that it does not perform as advertised.  It might be wise to
back up the database tables before using, and to check that it does what
we expect (that is, adds columns to the set and set_user tables) after
running it.

Revision 3075 - Directory Listing
Modified Thu Jan 6 21:04:29 2005 UTC (15 years, 1 month ago) by sh002i
small changes to keep up with DBv3 API

Revision 3021 - Directory Listing
Modified Thu Dec 9 16:30:12 2004 UTC (15 years, 2 months ago) by sh002i
refactored status/role lookups, added abstract set/problem support

Revision 3016 - Directory Listing
Modified Fri Dec 3 02:19:03 2004 UTC (15 years, 2 months ago) by sh002i
creates user, section, recitation, and participant records.

Revision 3015 - Directory Listing
Modified Thu Dec 2 04:31:36 2004 UTC (15 years, 2 months ago) by sh002i
support for importing roles and statuses from global.conf. the rest
should be considerably easier than this. i hope. i really do.

Revision 3012 - Directory Listing
Modified Thu Nov 25 05:50:51 2004 UTC (15 years, 2 months ago) by sh002i
the beginnings of an upgrade script. currently deals with converting
permission levels to roles properly! :)

Revision 2955 - Directory Listing
Modified Fri Oct 22 22:59:53 2004 UTC (15 years, 4 months ago) by sh002i
POD fixes

Revision 2890 - Directory Listing
Modified Sun Oct 10 21:45:43 2004 UTC (15 years, 4 months ago) by sh002i
support for password and permission level in classlist, bug #649. note
that passowrd is crypted!

Revision 2881 - Directory Listing
Modified Sun Oct 10 20:32:29 2004 UTC (15 years, 4 months ago) by sh002i
use WeBWorK::File::Classlist for classlist parsing. removed old
commented-out code from before CourseManangement.pm existed.

Revision 2877 - Directory Listing
Modified Sun Oct 10 17:04:47 2004 UTC (15 years, 4 months ago) by sh002i
works now

Revision 2866 - Directory Listing
Modified Thu Oct 7 02:06:25 2004 UTC (15 years, 4 months ago) by sh002i
skeleton of WW1Hash reindexing frontend

Revision 2863 - Directory Listing
Modified Thu Oct 7 01:23:19 2004 UTC (15 years, 4 months ago) by gage
Corrected useage statements.

Revision 2862 - Directory Listing
Modified Wed Oct 6 21:09:33 2004 UTC (15 years, 4 months ago) by gage
removed call for epsfile -- it was bogus.

Revision 2837 - Directory Listing
Modified Tue Sep 28 01:23:01 2004 UTC (15 years, 4 months ago) by sh002i
added script to add indices to sql_single courses. usage:

wwaddindexing course_name

Revision 2836 - Directory Listing
Modified Mon Sep 27 19:28:36 2004 UTC (15 years, 4 months ago) by sh002i
added script to convert a course from sql to sql_single. moves sql
tables from the course's database to the database used by the sql_single
loyout. also gives instructions on how to modify the course's
course.conf file to complete the transition.

Call sql2sql_single like this, in the common case:

./sql2sql_single <course-name> webwork root <sql-root-pw>

You can easily bash script this to do mass conversions of courses:

cd /webwork/shared-courses
for course in *; do
	sql2sql_single $course webwork root <sql-root-pw>
	cd /webwork/shared-courses/$course
	sed 's/sql/sql_single/' < course.conf > course.conf.new
	mv course.conf course.conf.old
	mv course.conf.new course.conf
done

to do a subset of all courses, change the `for' line to:

for course in course1 course2 course3; do

Revision 2820 - Directory Listing
Modified Thu Sep 23 17:10:09 2004 UTC (15 years, 5 months ago) by gage
Added DateTime module to the list of required modules.

Revision 2819 - Directory Listing
Modified Thu Sep 23 16:53:31 2004 UTC (15 years, 5 months ago) by sh002i
cleaned up command-line scripts.
- use new hashref form of WeBWorK::CourseEnvironment constructor.
- moved PSH to lib/
- stop using FindBin in wwsh

Revision 2818 - Directory Listing
Modified Thu Sep 23 16:33:59 2004 UTC (15 years, 5 months ago) by sh002i
removed deprecated scripts

Revision 2814 - Directory Listing
Modified Wed Sep 22 23:29:53 2004 UTC (15 years, 5 months ago) by gage
Running

latex check_latex.tex

will check to see that the .sty files can be found.

Revision 2812 - Directory Listing
Modified Tue Sep 21 23:27:40 2004 UTC (15 years, 5 months ago) by sh002i
pod fix

Revision 2503 - Directory Listing
Modified Mon Jul 12 17:55:55 2004 UTC (15 years, 7 months ago) by sh002i
fixed spacing in checkconfig message

Revision 2500 - Directory Listing
Modified Mon Jul 12 16:09:52 2004 UTC (15 years, 7 months ago) by sh002i
changed default WW directory to $HOME/webwork2

Revision 2492 - Directory Listing
Modified Mon Jul 12 02:43:18 2004 UTC (15 years, 7 months ago) by sh002i
DEVEL SYSTEM CONFIG CHANGES - PLEASE READ.

To complement the new Apache/WeBWorK configuration scheme, the
http-wwmp-header.conf and http-wwmp.conf files are being eliminated in
favor of a primarily Perl-based configuration scheme. This reduces
redundancy and allows both development and production system to share a
single "core" WeBWorK configuration file, webwork.apache-config.

The setup is described in the new top-level development server config
file devel.apache-config:

    This is an Apache configuration file suitable for use when doing
    development on the WeBWorK 2 system. This setup allows each
    developer to run an independent Apache server under their own UID,
    using their own working copy of the WeBWorK code. The configuration
    is split into three parts:

    The first part is a site-specific (but user-indepenent) file named
    devel-site.apache-config. It contains directives that are common to
    all development servers on the same host. The site administrator can
    chose to maintain a single copy of this file and have all developers
    reference it in a central location.

    The second part is the stock webwork.apache-config file that is used
    for normal installations. Customize this file, setting the
    $webwork_url, $webwork_dir, $pg_dir, etc. appropriatly for your
    development server.

    The third part is this file. It contains the user-specific
    directives that are specific to each developer's server.

Of the two files specific to development server configuration, only
devel-site.apache-config will require modification, and it need be
modified only once per host machine. devel.apache-config uses the UID
and GID and of the user running it, and the values set in
webwork.apache-conf, to configure itself.

wwapachectl has also been modified to refer to devel.apache-config
instead of http-wwmp.conf and streamline its configuration.

Revision 2487 - Directory Listing
Modified Sun Jul 11 19:41:30 2004 UTC (15 years, 7 months ago) by gage
Restoring gif2png default directory to one appropriate to unix installations
(as opposed to macs).  Sorry about that .

Revision 2476 - Directory Listing
Modified Sat Jul 10 16:05:11 2004 UTC (15 years, 7 months ago) by sh002i
added support for writing database to stdout if filename is "-".

Revision 2450 - Directory Listing
Modified Wed Jul 7 14:37:32 2004 UTC (15 years, 7 months ago) by gage
Changed the misnamed problem_header to hardcopy_header which is a more accurate
description of the variables use.

Hardcopy.pm now consults hardcopy_header as opposed to set_header

This addresses some of the concerns in bug #556

Revision 2432 - Directory Listing
Modified Thu Jul 1 20:40:24 2004 UTC (15 years, 7 months ago) by sh002i
cosmetic changes to check_modules.pl

Revision 2430 - Directory Listing
Modified Thu Jul 1 18:46:55 2004 UTC (15 years, 7 months ago) by sh002i
removed deprecated mksqldb utility. use new addcourse utility instead.

Revision 2411 - Directory Listing
Modified Fri Jun 25 18:37:37 2004 UTC (15 years, 7 months ago) by jj
Report number of images removed, improved behavior when the user specifies
both --remove and --report, die if you don't have permissions to remove an
image, and removed comments.

Revision 2408 - Directory Listing
Modified Fri Jun 25 16:23:38 2004 UTC (15 years, 7 months ago) by jj
Script for removing dvipng images matching various date criteria.

Revision 2329 - Directory Listing
Modified Wed Jun 16 18:21:10 2004 UTC (15 years, 8 months ago) by gage
Searches for some of the executables such as dvipng and tth as well

Revision 2237 - Directory Listing
Modified Tue Jun 1 14:42:26 2004 UTC (15 years, 8 months ago) by jj
Command line script to set a password, analogous to the WW 1 script.  The name is slightly different in case you need both available.

Revision 2208 - Directory Listing
Modified Mon May 24 18:16:34 2004 UTC (15 years, 9 months ago) by sh002i
PLEASE UPDATE wwapachectl FROM wwapachectl.dist!
added warnings if config files are older than distribution versions.

Revision 2181 - Directory Listing
Modified Sun May 23 19:54:53 2004 UTC (15 years, 9 months ago) by sh002i
IMPORTANT: changes to wwapachectl.dist -- update local copy!
added umask handling. if you're sharing courses with other users (as we
are on snoop and devel) uncomment the new "umask" line.

Revision 2148 - Directory Listing
Modified Sat May 22 01:08:09 2004 UTC (15 years, 9 months ago) by sh002i
added ability to import the contents of another course's templates
directory when creating a new course. this is supported in bin/addcourse
with the --templates-from=COURSEID switch and in the web interface with
an additional form field.

Revision 2118 - Directory Listing
Modified Sun May 16 23:31:11 2004 UTC (15 years, 9 months ago) by sh002i
removed unused code

Revision 2096 - Directory Listing
Modified Thu May 13 13:44:28 2004 UTC (15 years, 9 months ago) by gage
This checks for modules known to be needed by WeBWorK.
The list of modules is supplied in the DATA section of
the script.

Revision 2036 - Directory Listing
Modified Fri May 7 19:05:45 2004 UTC (15 years, 9 months ago) by sh002i
usage message prints supported tables

Revision 2007 - Directory Listing
Modified Wed May 5 22:38:24 2004 UTC (15 years, 9 months ago) by sh002i
course deletion script

Revision 2006 - Directory Listing
Modified Wed May 5 22:02:50 2004 UTC (15 years, 9 months ago) by sh002i
now uses CoureManagement backend

Revision 1986 - Directory Listing
Modified Thu Apr 29 23:33:26 2004 UTC (15 years, 9 months ago) by sh002i
cleaned up, added documentation, added "replace" functionality

Revision 1975 - Directory Listing
Modified Tue Apr 27 03:37:33 2004 UTC (15 years, 9 months ago) by sh002i
import support, error reporting

Revision 1971 - Directory Listing
Modified Sun Apr 25 16:27:15 2004 UTC (15 years, 9 months ago) by sh002i
wwdb is now for database import and export

Revision 1926 - Directory Listing
Modified Thu Mar 25 00:27:56 2004 UTC (15 years, 11 months ago) by sh002i
Added a new numeric "published" field to Set and UserSet record classes,
WW1Hash (with field name "publ"), and mksqldb.

Revision 1906 - Directory Listing
Modified Fri Mar 19 21:54:45 2004 UTC (15 years, 11 months ago) by sh002i
fixed stupid errors in generated course.conf file.

Revision 1872 - Directory Listing
Modified Wed Mar 10 16:00:16 2004 UTC (15 years, 11 months ago) by sh002i
removed outdated documentation about manually creating course.conf file.

Revision 1806 - Directory Listing
Modified Sat Feb 14 04:07:37 2004 UTC (16 years ago) by sh002i
a few more fixes

Revision 1805 - Directory Listing
Modified Sat Feb 14 00:56:00 2004 UTC (16 years ago) by sh002i
addcourse improvements:

FIXED: we should create a stub course.conf with dbLayout set and "other things
FIXED: you might want to change" commented out. then we can kill the "don't
FIXED: forget to set dbLayout to "sql" in course.conf!" message.

FIXED: setting global user ID in new courses:

FIXED: add a --global-user switch to addcourse to override that value
FIXED: (and add the override to course.conf)
FIXED: warn if the file specified by --users doesn't contain a user with the global user ID

Revision 1703 - Directory Listing
Modified Mon Jan 5 01:02:41 2004 UTC (16 years, 1 month ago) by sh002i
removed lingering references to "webwork-modperl", since we're calling
this product "webwork2" now. soon we should change the name of the CVS
module to "webwork2" as well.

Revision 1698 - Directory Listing
Modified Sun Jan 4 07:20:33 2004 UTC (16 years, 1 month ago) by sh002i
improved documentation in database.conf.dist and addcourse. added
mksqldb utility.

Revision 1697 - Directory Listing
Modified Sat Jan 3 21:00:28 2004 UTC (16 years, 1 month ago) by sh002i
changed calls to WeBWorK::DB::new, removed obsolete config files

Revision 1696 - Directory Listing
Modified Sat Jan 3 20:07:03 2004 UTC (16 years, 1 month ago) by sh002i
UPDATE YOUR CONFIG FILES! (global.conf.dist, database.conf.dist)

Made changes to support the storage of multiple database layouts in a
single course environment. Database layouts are now stored in a hash
named %dbLayouts in database.conf, and the default layout is aliased to
*dbLayout (see comments in database.conf.dist and global.conf.dist)
sql.conf and gdbm.conf are no longer used.

Support the selection of a specific database layout when instantiating
WeBWorK::DB. WeBWorK::DB now takes a reference to a database layout
rather than an entire course environment.

All calls to WeBWorK::DB::new were updated to pass the correct argument.

Revision 1689 - Directory Listing
Modified Sat Dec 27 21:41:56 2003 UTC (16 years, 1 month ago) by sh002i
added missing POD =back directive

Revision 1663 - Directory Listing
Modified Tue Dec 9 01:12:32 2003 UTC (16 years, 2 months ago) by sh002i
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.

Here is the new header:

################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
# Artistic License for more details.
################################################################################

Revision 1654 - Directory Listing
Modified Thu Dec 4 06:17:08 2003 UTC (16 years, 2 months ago) by sh002i
fixed password creation

Revision 1653 - Directory Listing
Modified Thu Dec 4 06:03:25 2003 UTC (16 years, 2 months ago) by sh002i
addcourse - add a course

addcourse [--users=FILE [--professors=USERID[,USERID]...] ]
[--templates=DIR] COURSEID

Add a course to the courses directory. The required directories will be
created. Optionally, a database can be populated with users and the
F<templates> directory can be populated with the contents of another
directory. Also, one or more users can be granted professor privileges.

Revision 1638 - Directory Listing
Modified Wed Nov 19 18:46:53 2003 UTC (16 years, 3 months ago) by sh002i
added script to generate HTML documentation from library POD

Revision 1564 - Directory Listing
Modified Mon Oct 6 22:35:16 2003 UTC (16 years, 4 months ago) by sh002i
now can take commands from ARGV intead of interactively

Revision 1222 - Directory Listing
Modified Thu Jun 19 19:23:50 2003 UTC (16 years, 8 months ago) by sh002i
updated calls to CE constructor

Revision 1192 - Directory Listing
Modified Tue Jun 17 22:07:59 2003 UTC (16 years, 8 months ago) by gage
Added a field for elapsed time ($diff).  Changed how the
fields are concatenated (for now).
--Mike

Revision 1189 - Directory Listing
Modified Tue Jun 17 21:37:23 2003 UTC (16 years, 8 months ago) by sh002i
Changed the format of some messages, added docs.
-sam

Revision 1179 - Directory Listing
Modified Mon Jun 16 23:58:55 2003 UTC (16 years, 8 months ago) by sh002i
added WeBWorK::Timing timer/logger and "timing" script to analyze timing
logs.
-sam

Revision 1178 - Directory Listing
Modified Mon Jun 16 23:58:04 2003 UTC (16 years, 8 months ago) by sh002i
wwapachectl now checks for existence of httpd.pid file.
-sam

Revision 1096 - Directory Listing
Modified Mon Jun 9 23:25:09 2003 UTC (16 years, 8 months ago) by sh002i
*** empty log message ***

Revision 946 - Directory Listing
Modified Fri May 30 00:27:02 2003 UTC (16 years, 8 months ago) by sh002i
now supports NULL as undef.
FIXME: update the docs.
-sam

Revision 922 - Directory Listing
Modified Wed May 28 01:18:11 2003 UTC (16 years, 8 months ago) by sh002i
added hash2sql conversion script.
-sam

Revision 843 - Directory Listing
Modified Thu May 15 00:58:44 2003 UTC (16 years, 9 months ago) by sh002i
bin/authedit is no longer useful, now that we have bin/wwdb

Revision 810 - Directory Listing
Modified Tue Apr 22 20:49:31 2003 UTC (16 years, 10 months ago) by sh002i
added bin/wwsh - a rudimentary webwork shell which (currently) allows
access to CourseEnvironment and DB objects. This could be extended to
provide a full shell for the WeBWorK system. (Uses PSH.pm.)
-sam

Revision 808 - Directory Listing
Modified Thu Apr 17 21:01:17 2003 UTC (16 years, 10 months ago) by sh002i
Lots of work on WWDBv2... WW1Hash is done! A complete dbLayout (as
detailed on global.conf.dist) works now.
-sam

Revision 800 - Directory Listing
Modified Tue Mar 25 20:16:26 2003 UTC (16 years, 11 months ago) by sh002i
updated usage() to reflect actual accepted syntax.
-sam

Revision 798 - Directory Listing
Modified Fri Mar 21 23:30:16 2003 UTC (16 years, 11 months ago) by sh002i
initial support for WWDBv2:
        - DB.pm finished (except for getGlobalUser{Set,Problem} methods)
        - schema modules for password, permission, key, and user with
          WWDBv1 hash-bashed backends
        - GDBM driver
        - wwdb command-line frontend
-sam

Revision 694 - Directory Listing
Modified Wed Jan 8 15:48:24 2003 UTC (17 years, 1 month ago) by sh002i
added gif2png script to the repository.
-sam

Revision 661 - Directory Listing
Modified Mon Nov 25 22:37:55 2002 UTC (17 years, 2 months ago) by sh002i
removed unused WEBWORKUSER variable
-sam

Revision 660 - Directory Listing
Modified Mon Nov 25 19:18:28 2002 UTC (17 years, 2 months ago) by malsyned
Changed the naming of the per-user config file
-dennis

Revision 658 - Directory Listing
Modified Mon Nov 25 08:39:38 2002 UTC (17 years, 3 months ago) by sh002i
renamed wwapachectl.sample -> wwapachectl.dist
-sam

Revision 651 - Directory Listing
Modified Sun Nov 24 03:21:47 2002 UTC (17 years, 3 months ago) by sh002i
added $WEBWORKUSER variable
-sam

Revision 638 - Directory Listing
Modified Wed Nov 20 20:22:08 2002 UTC (17 years, 3 months ago) by malsyned
Added a template for controlling the per-user apache process
-Dennis

Revision 562 - Directory Listing
Modified Fri Sep 27 23:53:42 2002 UTC (17 years, 4 months ago) by sh002i
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
  of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
  The translator no longer shares IO.pm's functions with the safe compartment.
  This is a BAD THING, and should be reconsidered when the Translator is
  revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
  in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
  &dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
  of uninitialized value in null operation" warning in template(), tho.

Still to come:

- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password

Revision 561 - Directory Listing
Modified Fri Sep 27 20:23:48 2002 UTC (17 years, 4 months ago) by sh002i
removed deprecated stuff from the bin directory.
added gif2eps and png2eps from the old system.
-sam

Revision 488 - Directory Listing
Modified Wed Aug 21 15:26:03 2002 UTC (17 years, 6 months ago) by sh002i
adapted pdf_latex to work with pdflatex. call it pip_pdflatex. it
doesn't exactly work yet. it might not be worth it.
-sam

Revision 432 - Directory Listing
Modified Fri Jul 19 02:39:16 2002 UTC (17 years, 7 months ago) by sh002i
added: math2img and support files... probably shouldn't distribute pip
with WeBWorK, but no one's going to complain, since it's in the public
domain (and that's one less dependancy ;)
-sam

Revision 351 - Directory Listing
Added Fri Jun 7 21:43:07 2002 UTC (17 years, 8 months ago) by sh002i
not ready for use yet. heh heh.
-sam

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9