|
From: <fer...@us...> - 2008-10-19 03:49:32
|
Revision: 6257
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6257&view=rev
Author: fer_perez
Date: 2008-10-19 03:49:27 +0000 (Sun, 19 Oct 2008)
Log Message:
-----------
New script to enable new problems.
Added Paths:
-----------
trunk/py4science/workbook/add_problem
Added: trunk/py4science/workbook/add_problem
===================================================================
--- trunk/py4science/workbook/add_problem (rev 0)
+++ trunk/py4science/workbook/add_problem 2008-10-19 03:49:27 UTC (rev 6257)
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+# Add a new problem to the workbook. This script simply creates the two
+# necessary symlinks.
+#
+# Usage:
+#
+# add_problem name
+#
+# NOTE: name should NOT contain the .py extension or path, just the basename of
+# the script. For example:
+#
+# add_problem qsort
+#
+# assumes there is a qsort.py problem in the examples directory, with
+# qsort_skel.py in the skel/ subdir and a qsort_soln.py in the soln/ subdir.
+
+prob=$1
+
+startdir=$(pwd)
+
+cd problems_skel
+ln -s ../../examples/skel/${prob}_skel.py ${prob}.py
+
+cd $startdir
+
+cd problems_soln
+ln -s ../../examples/soln/${prob}_soln.py ${prob}.py
Property changes on: trunk/py4science/workbook/add_problem
___________________________________________________________________
Added: svn:executable
+ *
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|