Package: gpsdrive-scripts Version: 2.10~pre4-6 Filename: pool/main/g/gpsdrive/gpsdrive-scripts_2.10~pre4-6_all.deb Found error in /usr/bin/geo-code: $ grep -A5 -B5 /tmp/ /usr/bin/geo-code } # # Main Program # TMP=/tmp/geo$$ STYLE=${TMP}.style COORDS=${TMP}.coords OUTWAY=${TMP}.way MAP=${TMP}.gif UA="Mozilla/5.0" -- | tee $COORDS \ | sed -n 's#.*href=http://maps.yahoo.com/\([^>]*\)>.*#\1#p' \ | head -n1 \ ` if [ "$URL" = "" ]; then cp $COORDS /tmp/geo.google error "Unable to lookup telephone number or name with Google" else URL="http://maps.yahoo.com/$URL" fi else -- if [ $DEBUG -gt 0 ]; then echo "curl $URL" fi if [ $DEBUG -gt 0 ]; then filter="tee /tmp/geo.yahoo" else filter=cat fi curl -L -s -A "$UA" "$URL" \ | $filter \ -- -e 's/Yahoo! Maps - \([^<]*\)<.*/\1/p' \ -e 's/.*slt=\([^%]*\).*sln=\([^%]*\).*Create.*/\1 \2/p' \ > $COORDS if [ $DEBUG -gt 0 ]; then cp $COORDS /tmp/geo.coords fi # # Convert the coords, address, and type to the desired # output format.