This is the mail archive of the cygwin@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 8:09 PM

> As noticed, this has been discused on cygwin-apps.  As an addendum,
> I'm working to provide cross-compile setup as mknetrel scripts, but
> they've not been offered to be included in mknetrel yet.  You can find
> them as a WIP at:

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

export PKG=`echo $1 | sed -e 's/_.*//'`
echo package $PKG
export VER=`echo $1 | sed -e 's/[^_]*_//' -e 's/_.*//'`
echo version $VER
export REL=1
echo cygwin release 1
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.

====


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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