summaryrefslogtreecommitdiff
path: root/oracle-conversion/create-kapv-in-moodle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'oracle-conversion/create-kapv-in-moodle.sh')
-rw-r--r--oracle-conversion/create-kapv-in-moodle.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/oracle-conversion/create-kapv-in-moodle.sh b/oracle-conversion/create-kapv-in-moodle.sh
new file mode 100644
index 0000000..e501a86
--- /dev/null
+++ b/oracle-conversion/create-kapv-in-moodle.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+xsltproc sort-lesson.xsl lesson.xml | \
+ xsltproc \
+ --stringparam cookie MoodleSession=XXXXXXXXXXXXXXXXXXXXXXXXXX \
+ --stringparam sesskey xxxxxxxxxx \
+ --stringparam url http://moodle.bnfr.net \
+ --stringparam module 23 \
+ --stringparam course 2 \
+ --stringparam section 1 \
+ lesson-add-to-moodle.xsl - | \
+ while read cmd;
+ do
+ eval $cmd
+ done