> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Jan Nieuwenhuizen
> Sent: Thursday, 18 July 2002 9:37 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Concise Instructions for Doing a gcc
> Cross-Compile in CYGWIN for FreeBSD
>
>
> "Robert Collins" <[EMAIL PROTECTED]> writes:
>
> > If you want an alternative to creating yet another tool,
> you might find
> > the following script kinda useful. A similar principle
> applies to the
> > use of rpm cross-compile toolkits.
> >
> > ===
> > #! /bin/bash
> > # convert a deb file to a cygwin setup.exe tarball
>
> Cool.
Thanks for the patch.
And an another update - support picking up the cygwin release IFF it
exists.
(Tested with libxml2_2.4.23-1_i386.deb)
#! /bin/bash
# convert a deb file to a cygwin setup.exe tarball
debname=$(basename $1)
export PKG=`echo $debname | sed -e 's/_.*//'`
echo package $PKG
export VER=`echo $debname | sed -e 's/[^_]*_//' -e 's/[-_].*//'`
echo version $VER
export REL=`echo $debname | sed -e 's/[^_]*_//' -e 's/[^-]*-//' -e
's/_.*//'`
[ $VER == $REL ] && export REL=1
echo cygwin release $REL
export FULLPKG=${PKG}-${VER}-${REL}
export bin_pkg_name=${FULLPKG}.tar.bz2
export bin_pkg=`pwd`/${bin_pkg_name}
dpkg-deb -x $1 $PKG-$VER-temp && \
cd $PKG-$VER-temp && \
tar cvjf ${bin_pkg} * &&
echo ${bin_pkg} created.