summaryrefslogtreecommitdiffstats
path: root/panupdate
diff options
context:
space:
mode:
Diffstat (limited to 'panupdate')
-rwxr-xr-xpanupdate14
1 files changed, 14 insertions, 0 deletions
diff --git a/panupdate b/panupdate
new file mode 100755
index 0000000..1688fe8
--- /dev/null
+++ b/panupdate
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+for dir in $(ls .md)
+do
+ for file in $(find .md/$dir)
+ do
+ if [[ "$file" == *.md ]]
+ then
+ newfile=$(sed "s/\.md\///; s/md/html/" <<< $file)
+ echo "Saved "$file" to "$newfile
+ pandoc -f markdown-smart $file -t html -o $newfile
+ fi
+ done
+done