From 0c8c9ad976879f7c90f9915a60845ccb0cdb337d Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 25 Dec 2013 13:25:16 +0100 Subject: initial commit --- doc/updatedoc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 doc/updatedoc (limited to 'doc/updatedoc') diff --git a/doc/updatedoc b/doc/updatedoc new file mode 100755 index 0000000..aa0e5bc --- /dev/null +++ b/doc/updatedoc @@ -0,0 +1,23 @@ +#!/bin/sh + +if [ -z "$*" ]; then + files=`ls` +else + files="$*" +fi + +for file in $files; do + echo "Downloading $file..." + wget -q http://webiopi.googlecode.com/svn/wiki/$file.wiki && + echo "Processing $file..." && + mv $file.wiki $file && + sed -i 's/\|<\/font>//g' $file && + sed -i 's/
\|<\/pre>//g' $file &&
+	sed -i 's/[_*]//g' $file &&
+	sed -i '/{{{\|}}}/d' $file &&
+	echo "$file OK" ||
+	echo "$file not on wiki"
+done
+
+echo "Uploading changes on SVN..."
+svn commit -m "updated doc from wiki"
\ No newline at end of file
-- 
cgit v1.2.3