This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Concise Instructions for Doing a gcc Cross-Compile in CYGWIN for FreeBSD



> -----Original Message-----
> From: cygwin-apps-owner@cygwin.com 
> [mailto:cygwin-apps-owner@cygwin.com] On Behalf Of Jan Nieuwenhuizen
> Sent: Thursday, 18 July 2002 9:37 PM
> To: cygwin-apps@cygwin.com
> Subject: Re: Concise Instructions for Doing a gcc 
> Cross-Compile in CYGWIN for FreeBSD
> 
> 
> "Robert Collins" <robert.collins@syncretize.net> 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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]