From 68f8ca16e2cd60bb946112ac2422e1d8cfb10dc6 Mon Sep 17 00:00:00 2001
From: patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>
Date: Sat, 28 Mar 2009 16:11:20 +0000
Subject: [PATCH] wget now takes only a URL as a argument; not host + file

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1653 42af7a65-404d-4744-a932-0658087f49c3
---
 configs/c5471evm/defconfig               | 6 ++----
 configs/c5471evm/dhcpconfig              | 6 ++----
 configs/c5471evm/netconfig               | 6 ++----
 configs/c5471evm/nshconfig               | 6 ++----
 configs/ez80f910200kitg/ostest/defconfig | 6 ++----
 configs/ez80f910200zco/dhcpd/defconfig   | 6 ++----
 configs/ez80f910200zco/httpd/defconfig   | 6 ++----
 configs/ez80f910200zco/nettest/defconfig | 6 ++----
 configs/ez80f910200zco/nsh/defconfig     | 6 ++----
 configs/ez80f910200zco/ostest/defconfig  | 6 ++----
 configs/ez80f910200zco/poll/defconfig    | 6 ++----
 11 files changed, 22 insertions(+), 44 deletions(-)

diff --git a/configs/c5471evm/defconfig b/configs/c5471evm/defconfig
index 3c778d294c..ddeed33c50 100644
--- a/configs/c5471evm/defconfig
+++ b/configs/c5471evm/defconfig
@@ -377,14 +377,12 @@ CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/c5471evm/dhcpconfig b/configs/c5471evm/dhcpconfig
index 50596e3370..79d220f8c9 100644
--- a/configs/c5471evm/dhcpconfig
+++ b/configs/c5471evm/dhcpconfig
@@ -377,14 +377,12 @@ CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/c5471evm/netconfig b/configs/c5471evm/netconfig
index 312b11414c..7d63ed47bb 100644
--- a/configs/c5471evm/netconfig
+++ b/configs/c5471evm/netconfig
@@ -377,14 +377,12 @@ CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/c5471evm/nshconfig b/configs/c5471evm/nshconfig
index ac0ca2582c..7ee3d4acc1 100644
--- a/configs/c5471evm/nshconfig
+++ b/configs/c5471evm/nshconfig
@@ -377,14 +377,12 @@ CONFIG_EXAMPLES_NSH_NETMASK=(255<<24|255<<16|255<<8|0)
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200kitg/ostest/defconfig b/configs/ez80f910200kitg/ostest/defconfig
index 51d6c3e0be..d4b3f972db 100644
--- a/configs/ez80f910200kitg/ostest/defconfig
+++ b/configs/ez80f910200kitg/ostest/defconfig
@@ -717,14 +717,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200zco/dhcpd/defconfig b/configs/ez80f910200zco/dhcpd/defconfig
index 6ffc906119..5bfdf9f9f0 100644
--- a/configs/ez80f910200zco/dhcpd/defconfig
+++ b/configs/ez80f910200zco/dhcpd/defconfig
@@ -765,14 +765,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200zco/httpd/defconfig b/configs/ez80f910200zco/httpd/defconfig
index 04ad0cb998..eb25f433fc 100644
--- a/configs/ez80f910200zco/httpd/defconfig
+++ b/configs/ez80f910200zco/httpd/defconfig
@@ -773,14 +773,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200zco/nettest/defconfig b/configs/ez80f910200zco/nettest/defconfig
index e9dd0d9109..6dab0787f9 100644
--- a/configs/ez80f910200zco/nettest/defconfig
+++ b/configs/ez80f910200zco/nettest/defconfig
@@ -758,14 +758,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200zco/nsh/defconfig b/configs/ez80f910200zco/nsh/defconfig
index 352542fb53..7a6da036b7 100644
--- a/configs/ez80f910200zco/nsh/defconfig
+++ b/configs/ez80f910200zco/nsh/defconfig
@@ -758,14 +758,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200zco/ostest/defconfig b/configs/ez80f910200zco/ostest/defconfig
index 95243d13fd..2264c8a05e 100644
--- a/configs/ez80f910200zco/ostest/defconfig
+++ b/configs/ez80f910200zco/ostest/defconfig
@@ -741,14 +741,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
diff --git a/configs/ez80f910200zco/poll/defconfig b/configs/ez80f910200zco/poll/defconfig
index 21521105fa..4ea75dfc19 100644
--- a/configs/ez80f910200zco/poll/defconfig
+++ b/configs/ez80f910200zco/poll/defconfig
@@ -758,14 +758,12 @@ CONFIG_EXAMPLES_MOUNT_DEVNAME="/dev/ram0"
 
 #
 # Settings for examples/wget
-# CONFIG_EXAMPLE_WGET_HOSTNAME - The host that serves the file
-# CONFIG_EXAMPLE_WGET_FILENAME - The name of the file to get (with leading '/')
+# CONFIG_EXAMPLE_WGET_URL - The URL of the file to get
 # CONFIG_EXAMPLE_WGET_NOMAC - (May be defined to use software assigned MAC)
 # CONFIG_EXAMPLE_WGET_IPADDR - Target IP address
 # CONFIG_EXAMPLE_WGET_DRIPADDR - Default router IP addess
 # CONFIG_EXAMPLE_WGET_NETMASK - Network mask
-CONFIG_EXAMPLE_WGET_HOSTNAME="www.nuttx.org"
-CONFIG_EXAMPLE_WGET_FILENAME="/index.html"
+CONFIG_EXAMPLE_WGET_URL="http://www.nuttx.org/index.html"
 CONFIG_EXAMPLE_WGET_NOMAC=y
 CONFIG_EXAMPLE_WGET_IPADDR=(10L<<24|0L<<16|0L<<8|2L)
 CONFIG_EXAMPLE_WGET_DRIPADDR=(10L<<24|0L<<16|0L<<8|1L)
-- 
GitLab