[system] / trunk / webwork2 / bin / pg-pull Repository:
ViewVC logotype

Log of /trunk/webwork2/bin/pg-pull

Parent Directory Parent Directory


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 5611 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 4 22:58:11 2008 UTC (5 years, 3 months ago) by sh002i
File length: 8002 byte(s)
Diff to previous 5567
(1) require --dest-lib, don't accept "files ... dest-lib"
(2) add --check-names to warn if a file name will be changed
(3) added --help option, improve usage output

Revision 5567 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 22 20:32:38 2007 UTC (5 years, 7 months ago) by sh002i
File length: 7693 byte(s)
Diff to previous 5565
actually do the file copies, added --pretend and --verbose options.

Revision 5565 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 17 16:58:12 2007 UTC (5 years, 7 months ago) by sh002i
File length: 7539 byte(s)
Diff to previous 5564
use WEBWORK_ROOT to find libdir (not FindBin)

Revision 5564 - (view) (download) (annotate) - [select for diffs]
Added Wed Oct 17 16:56:16 2007 UTC (5 years, 7 months ago) by sh002i
File length: 7453 byte(s)
Useful tools for managing NPL-style tags in PG problems.

These tools were developed in the course of managing the Rogawski
problem library for W.H.Freeman:

lib/WeBWorK/NPL.pm - Useful routines for parsing and writing PG tags
format as well as the Textbooks file format. Also contains a routine
gen_find_tags which generates a "wanted" function for File::Find that
finds files that match a certain tags specification. As of now, editing
of tags is somewhat limited -- a facility for appending tags to the end
of the tag block is given, which should be sufficient for adding a new
textbook to existing files.

The tag parsing routine is all new, and should be somewhat more robust
and harder to abuse. One notable improvement is that it can handle
escaped single quotes within values, making it possible to say things
like:
	## DBsection('L\'Hospital\'s Rule')
However, the stricter value parsing makes it reject some broken values
already in the NPL. In the case of KEYWORDS, if a parse error is
encountered it will fall back on the old keyword parsing method. This
could be extended to other values if need be.

bin/pg-find-tags - Prints file names for files that match specifications
given on the command line. Good demo of how to use gen_find_tags. Can be
easily modified to perform other tasks.

bin/pg-append-textbook-tags - Appends tags for a new textbook to the end
of the tag block in an already-tagged file.

bin/pg-pull - Pull files from an existing library into a new library.
Directory and file names for the new library can be generated from the
tags in the problem (and optionally use the names from a Textbooks
file). We use this to pull Rogawski-tagged NPL problems out for separate
distribution. This script has some annoying limitations right now --
read the comments.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9