diff options
| author | manuel <manuel@mausz.at> | 2013-12-25 13:25:16 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-12-25 13:25:16 +0100 |
| commit | 0c8c9ad976879f7c90f9915a60845ccb0cdb337d (patch) | |
| tree | 162951b4713f3836f4114958a423e2c90ecf9c6b /doc/updatedoc | |
| download | webiopi-0c8c9ad976879f7c90f9915a60845ccb0cdb337d.tar.gz webiopi-0c8c9ad976879f7c90f9915a60845ccb0cdb337d.tar.bz2 webiopi-0c8c9ad976879f7c90f9915a60845ccb0cdb337d.zip | |
initial commit
Diffstat (limited to 'doc/updatedoc')
| -rwxr-xr-x | doc/updatedoc | 23 |
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 | |||
| 3 | if [ -z "$*" ]; then | ||
| 4 | files=`ls` | ||
| 5 | else | ||
| 6 | files="$*" | ||
| 7 | fi | ||
| 8 | |||
| 9 | for 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" | ||
| 20 | done | ||
| 21 | |||
| 22 | echo "Uploading changes on SVN..." | ||
| 23 | svn commit -m "updated doc from wiki" \ No newline at end of file | ||
