This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: setup.exe -s site option not working for me
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>, cygwin at cygwin dot com
- Date: Fri, 28 Aug 2015 16:57:16 +0300
- Subject: Re: setup.exe -s site option not working for me
- Authentication-results: sourceware.org; auth=none
- References: <0D835E9B9CD07F40A48423F80D3B5A702E917FA7 at USA7109MB022 dot na dot xerox dot net>
- Reply-to: cygwin at cygwin dot com
Greetings, Nellis, Kenneth!
> Dear Cygwin Users:
> I currently run setup through a Windows shortcut that adds options
> -d -N to the standard command line. Being exposed recently to
> cygwinports, I was attempting to have separate shortcuts,
Wasted effort.
> one for regular cygwin and one for cygwinports. To distinguish between them,
> I tried adding -s <site> to the command-line options to specify the
> respective sites. Instead of working as I expected:
> 1. In the "Choose A Download Site" window, instead of simply auto-
> selecting my regular site, it created a duplicate entry of the site;
> and
> 2. When I proceeded to the next step, it complained with "Unable to
> get setup.ini from <[site]>" and wouldn't let me proceed until I
> selected the other of the duplicated site names.
> Perhaps my mission to have separate setup procedures for cygwin
> and cygwinports is folly, but wondering if I am doing something
> wrong or if the -s <site> option isn't working as it should.
----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< ----- 8< -----
#!/bin/sh
# Cygwin upgrade helper script.
# Usage:
#
# install-cygwin.sh [ ports ]
#
# If you intend to use it for new installs, you will need minimal bootstrap
# including POSIX shell interpreter and wget utility.
#
# You will have to edit the script to provide mirror URL of your choice.
#
# The script assumes existing installation of the same architecture as
# the host operating system.
# If you want to install 32-bit Cygwin on 64-bit host, override
# $ARCH with value other than "x86_64".
# F.e.
#
# ARCH=x86 ./install-cygwin.sh
# Mirror URL - don't include trailing slash!
MIRROR="${MIRROR:-http://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin}"
# System architecture.
ARCH="${ARCH:-$(uname -m)}"
# Localization is fine... as long as you don't show it to other people.
export LANG=C
if [ "$ARCH" != "x86_64" ]; then
ARCH=x86
fi
wget -N "http://cygwin.com/setup-${ARCH}.exe"
if [ "$1" = "ports" ]; then
KEYS="-K http://cygwinports.org/ports.gpg -s ""${MIRROR%%/}ports/"
shift
fi
./setup-${ARCH}.exe -O -s "${MIRROR%%/}/" $KEYS $* &
----- >8 ----- >8 ----- >8 ----- >8 ----- >8 ----- >8 ----- >8 ----- >8 -----
the only problem is that I have to manually kill last shell that is attached
to the setup.exe after the script ends, to allow clean upgrade.
--
With best regards,
Andrey Repin
Friday, August 28, 2015 16:51:27
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple