Commit Graph

40 Commits

Author SHA1 Message Date
Steven Penny ca292c5de8 Minor cleanup
- remove quote where possible
- remove temporary variables where it makes sense
- use single quote over double quote where possible
2014-03-16 06:59:16 -05:00
Steven Penny 663a6d55ae 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
2014-03-16 06:59:16 -05:00
Steven Penny b42a6cb813 Update dependency and arch checking
Use more concise methods for both.
2014-03-16 06:59:16 -05:00
Steven Penny 041bc88276 Code clean up part 3
- avoid double quotes where possible
- replace 'echo ""' with 'echo'
- remove "useless use of cat"
- "awk" statement refactoring
2014-03-16 06:59:16 -05:00
Steven Penny 54d23fc0dc 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'
2014-03-16 06:59:16 -05:00
Steven Penny 135b3abda5 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'
2014-03-16 06:59:16 -05:00
Steven Penny 01244a6998 change mode apt-cyg 2014-03-16 06:59:16 -05:00
Steven Penny 41e1d91172 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.
2014-03-16 06:59:16 -05:00
info@skl.me c093abfb33 Fix svn merge conflicts
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@33 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-03-16 06:59:16 -05:00
info@skl.me 58b348157b Change default mirror to mirrors.kernel.org
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@32 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-03-16 06:59:16 -05:00
info@skl.me 53848c2565 Update README.md
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@31 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-03-16 06:59:16 -05:00
info@skl.me ae383fb2cb Readme update.
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@30 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-03-16 06:59:16 -05:00
info@skl.me b5a013687a Add xz archive support.
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@29 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-03-16 06:59:16 -05:00
info@skl.me ff29e0f3f4 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
2014-03-16 06:59:16 -05:00
Stephen Lang 60a31c5097 Change default mirror to mirrors.kernel.org 2014-03-16 06:59:16 -05:00
Stephen Lang c42c44231b Added README 2014-03-16 06:59:16 -05:00
Ryan Duryea 4b71f04951 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
2014-03-16 06:59:16 -05:00
Ryan Duryea 02925201a1 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
2014-03-16 06:59:16 -05:00
Steven Penny 843a530267 Merge commit 'origin~21' 2014-03-16 06:59:07 -05:00
info@skl.me 37d6173a6e Update README.md
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@26 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-02-19 19:42:35 +00:00
info@skl.me 7c1cecba5a Update README.md
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@25 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-02-19 19:42:30 +00:00
info@skl.me 2f84a3f37d Initial commit
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@24 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-02-19 19:42:24 +00:00
info@skl.me 45de191d54 Merge branch 0.58
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@22 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-02-17 20:50:50 +00:00
info@skl.me 0f361a1187 Detect CPU architecture for new mirror paths
git-svn-id: https://apt-cyg.googlecode.com/svn/branches/0.58@21 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-02-17 20:36:11 +00:00
info@skl.me 09bf3decd7 Creating version 0.58 branch
git-svn-id: https://apt-cyg.googlecode.com/svn/branches/0.58@20 f2a461e8-04e4-11de-bcc6-d9108be23e13
2014-02-17 20:17:13 +00:00
Leszek Cimala 46fb5d39cc Update README.md 2013-10-23 20:03:32 +02:00
ernierasta 6c2cc7c5ea Readme update. 2013-10-23 13:17:05 +02:00
ernierasta c437fa0e3c Add multiarch support. 2013-10-23 13:13:17 +02:00
ernierasta 9058643302 Add xz archive support. 2013-10-23 12:59:49 +02:00
Stephen Jungels fc54d5c79d Update README.md 2013-07-28 12:26:43 -04:00
Stephen Jungels 8d8dd6537b Update README.md 2013-07-28 12:20:21 -04:00
Stephen Jungels 2af0c86cb8 Create apt-cyg 2013-07-28 12:12:28 -04:00
Stephen Jungels ab235c09c3 Initial commit 2013-07-28 09:10:06 -07:00
sjungels ee3f7b84df added edge case for obsolete packages
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@18 f2a461e8-04e4-11de-bcc6-d9108be23e13
2010-04-27 18:55:43 +00:00
sjungels 25a51eb95f 1. tightened regex install expression; 2. used wget -N where appropriate
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@17 f2a461e8-04e4-11de-bcc6-d9108be23e13
2010-04-27 11:08:50 +00:00
sjungels e8891b5794 Merged patch that adds --noupdate flag
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@12 f2a461e8-04e4-11de-bcc6-d9108be23e13
2009-08-10 14:16:43 +00:00
sjungels cbff7c94a1 Accepted patch that prevents extra downloads of setup.bz2
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@11 f2a461e8-04e4-11de-bcc6-d9108be23e13
2009-06-14 16:27:41 +00:00
sjungels e81c40cac2 Removed cruft
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@3 f2a461e8-04e4-11de-bcc6-d9108be23e13
2009-02-27 15:59:40 +00:00
sjungels c3ae41fc7b Initial import
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@2 f2a461e8-04e4-11de-bcc6-d9108be23e13
2009-02-27 15:57:11 +00:00
(no author) acabffdd2c Initial directory structure.
git-svn-id: https://apt-cyg.googlecode.com/svn/trunk@1 f2a461e8-04e4-11de-bcc6-d9108be23e13
2009-02-27 15:40:24 +00:00