delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/18/06:31:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Robert Collins" <robert DOT collins AT syncretize DOT net>
To: <cygwin-apps AT cygwin DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Concise Instructions for Doing a gcc Cross-Compile in CYGWIN for FreeBSD
Date: Thu, 18 Jul 2002 20:31:14 +1000
Message-ID: <000101c22e46$3e781240$0200a8c0@lifelesswks>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <87ptxluz4q.fsf@peder.flower>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> -----Original Message-----
> From: cygwin-apps-owner AT cygwin DOT com 
> [mailto:cygwin-apps-owner AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019