Mercurial > geeqie
view doc/download.sh @ 1788:6a88c55c6f68
copy_file(): remove incomplete file on error (bug 2890715)
The behavior changed, data is first written to a temporary file,
which is unlinked in case of error, then the tempfile is renamed
to the final name.
Size of buffer was increased from 4k to 16k.
author | zas_ |
---|---|
date | Sun, 10 Jan 2010 14:23:29 +0000 |
parents | 2ae81598b254 |
children |
line wrap: on
line source
#!/bin/sh unset LANG PAGES=`curl "http://sourceforge.net/apps/trac/geeqie/wiki/TitleIndex" | \ sed -e "s|>|>\n|g" |grep 'href=.*/geeqie/wiki/Guide'|sed -e 's|.*/wiki/Guide\([a-zA-Z0-9]*\).*|Guide\1|'` mkdir wiki for p in $PAGES ; do curl "http://sourceforge.net/apps/trac/geeqie/wiki/$p?format=txt" > wiki/$p done