summaryrefslogtreecommitdiffstats
path: root/doc/updatedoc
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-12-25 13:25:16 +0100
committermanuel <manuel@mausz.at>2013-12-25 13:25:16 +0100
commit0c8c9ad976879f7c90f9915a60845ccb0cdb337d (patch)
tree162951b4713f3836f4114958a423e2c90ecf9c6b /doc/updatedoc
downloadwebiopi-0c8c9ad976879f7c90f9915a60845ccb0cdb337d.tar.gz
webiopi-0c8c9ad976879f7c90f9915a60845ccb0cdb337d.tar.bz2
webiopi-0c8c9ad976879f7c90f9915a60845ccb0cdb337d.zip
initial commit
Diffstat (limited to 'doc/updatedoc')
-rwxr-xr-xdoc/updatedoc23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/updatedoc b/doc/updatedoc
new file mode 100755
index 0000000..aa0e5bc
--- /dev/null
+++ b/doc/updatedoc
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3if [ -z "$*" ]; then
4 files=`ls`
5else
6 files="$*"
7fi
8
9for file in $files; do
10 echo "Downloading $file..."
11 wget -q http://webiopi.googlecode.com/svn/wiki/$file.wiki &&
12 echo "Processing $file..." &&
13 mv $file.wiki $file &&
14 sed -i 's/<font color="red">\|<\/font>//g' $file &&
15 sed -i 's/<pre>\|<\/pre>//g' $file &&
16 sed -i 's/[_*]//g' $file &&
17 sed -i '/{{{\|}}}/d' $file &&
18 echo "$file OK" ||
19 echo "$file not on wiki"
20done
21
22echo "Uploading changes on SVN..."
23svn commit -m "updated doc from wiki" \ No newline at end of file