Merge commit 'origin~21'
Handle the x86/x86_64 split when downloading setup.ini

Cygwin recently introduced an x86_64 version and so all the mirrors
now have x86 or x86_64 in their paths, depending on which version
you've installed.

The only change required is when the setup file is fetched.

The setup file itself contains the paths prefixed with either
x86 or x86_64
fetch setup.ini using $arch in mirror path as well

boothj5 pointed out that the script also needs the $arch
in the URL when fetching setup.ini as a fall back to
fetching setup.bz2
Added README
Change default mirror to mirrors.kernel.org
Handle the x86/x86_64 split when downloading setup.ini

Cygwin recently introduced an x86_64 version and so all the mirrors
now have x86 or x86_64 in their paths, depending on which version
you've installed.

The only change required is when the setup file is fetched.

The setup file itself contains the paths prefixed with either
x86 or x86_64

git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@28 f2a461e8-04e4-11de-bcc6-d9108be23e13
Add xz archive support.

git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@29 f2a461e8-04e4-11de-bcc6-d9108be23e13
Readme update.

git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@30 f2a461e8-04e4-11de-bcc6-d9108be23e13
Update README.md

git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@31 f2a461e8-04e4-11de-bcc6-d9108be23e13
Change default mirror to mirrors.kernel.org

git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@32 f2a461e8-04e4-11de-bcc6-d9108be23e13
Fix svn merge conflicts

git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@33 f2a461e8-04e4-11de-bcc6-d9108be23e13
bootstrap wget

Currently apt-cyg has a circular dependency on wget. This can be resolved the
following ways, but each has problems

- setup-x86_64
  you can run a command like "setup-x86_64 -qP wget" but this is not desirable
  because it just spawns the gui, which was probably what apt-cyg was designed
  to prevent in the first place

- using /dev/tcp
  this is a good solution but does not work for "https://" URLs

- using telnet
  this is a windows component but is disabled by default

- using curl
  like wget, this does not come with base Cygwin

- using powershell
  this is available for XP and later, but only comes preinstalled with Windows 7
  and later

This commit would allow a "wget" Bash function to be used if "wget.exe" is not
found, for example
http://github.com/svnpenn/dotfiles/blob/19b7b76/.bashrc#L54-L67
My function uses powershell, but a function using any of the above methods would
work.
change mode apt-cyg
Code clean up

- utilize "||" as continuation character, remove unneeded "\"
- remove excess empty lines
- replace "shift; shift" with "shift 2"
- move redirects to end of line
- removed several "useless use of cat"
- refactored several "awk" statements
- replace 'echo ""' with 'echo'
Code clean up part 2

- avoid using escaped double quotes where possible
- use "+=" where possible
- remove "useless use of cat"
- "awk" statement refactoring
- replace 'echo ""' with 'echo'
Code clean up part 3

- avoid double quotes where possible
- replace 'echo ""' with 'echo'
- remove "useless use of cat"
- "awk" statement refactoring
Update dependency and arch checking

Use more concise methods for both.
Code clean up part 4

- use "[" instead of "test"
- remove double quotes where word splitting does not occur
- revise some "sed" statements
- use "((" construct where possible
- use "return" in place of long winded "if" statements
- use "+=" where possible
- use "type" instead of "which"
- use "[[" construct where appropriate
Minor cleanup

- remove quote where possible
- remove temporary variables where it makes sense
- use single quote over double quote where possible
Change "apt-cyg show" to "apt-cyg list"

This puts apt-cyg more in line with "dpkg --list".

The plan is to merge "apt-cyg show" and "apt-cyg find" into "apt-cyg list".