This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: Upload: bash-3.0-6
On Jul 7 15:00, Corinna Vinschen wrote:
> On Jul 7 11:55, Corinna Vinschen wrote:
> > On Jul 6 20:57, Eric Blake wrote:
> > > mentions a test version. You can delete 2.05b-16, and 3.0-[345], leaving
> > > 2.05b-17 as previous and 3.0-6 as current. The following needs to be done
> >
> > Done.
> >
> > I've taken your 00ash.sh script and uploaded the new ash simultaneously.
>
> What version of cygcheck were you using? My version of cygcheck
> from the latest release doesn't print "Error: could not find ...
> but "...: Cannot open". And the cygcheck version from cvs prints
> the same. Let's release new bash and ash packages ASAP!
Your 00bash.sh should look like this, probably:
==== SNIP ====
#!/bin/bash
# Bash postinstall script. This ensures that /bin/sh exists and is
# runnable, updating older copies of ash or bash as appropriate, while
# leaving other shells (ksh or zsh) alone.
# Get rid of ash manpage, if it is in the way of our compressed page.
rm -f /usr/share/man/man1/sh.1
update=no
# Is /bin/sh missing, or have broken dependencies?
case `cygcheck /bin/sh.exe 2>&1` in
*Cannot\ open*) update=yes ;;
*) # We can run it. Is the version from ash or bash?
case `/bin/sh.exe --version 2>&1` in
Illegal\ option\ --* | GNU\ bash*) update=yes ;;
esac ;;
esac
# Update, if needed. Use copy, not hard or symlink, since symlinks won't
# work from Windows cmd and a hardlink to a running shell can't be broken.
# As a last-ditch fallback, try exec to stop running bash.
if test $update = yes ; then
cp -f /bin/bash.exe /bin/sh.exe || exec cp -f /bin/bash.exe /bin/sh.exe
fi
==== SNAP ====
I've changed the 00ash.sh script accordingly and already uploaded the
package.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader mailto:cygwin@cygwin.com
Red Hat, Inc.