|
|
@ -2,7 +2,7 @@ |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: lib/sde-download/get-tokenized.sh |
|
|
|
# Filename: lib/sde-download/dump.sh |
|
|
|
# Copyright (C) 2009 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
@ -13,11 +13,7 @@ |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
# returns mutilated but grep friendly content of a page |
|
|
|
# |
|
|
|
# (It will include many empty lines, but it doesn't worth to remove them |
|
|
|
# here) |
|
|
|
# |
|
|
|
# dumps the content of a page |
|
|
|
|
|
|
|
curl_options="-s -L" |
|
|
|
curl_options="$curl_options --disable-epsv" |
|
|
@ -36,5 +32,5 @@ for x; do |
|
|
|
echo "$x" >&2 |
|
|
|
curl $curl_options "$x" |
|
|
|
errno="$?" |
|
|
|
done < /dev/null | sed -e "s,[\r\t\"'<>= /],\n,g" |
|
|
|
done < /dev/null |
|
|
|
exit "${errno:-1}" |