This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Concise Instructions for Doing a gcc Cross-Compile in CYGWINfor FreeBSD
- From: Jan Nieuwenhuizen <janneke at gnu dot org>
- To: cygwin-apps at cygwin dot com
- Date: Thu, 18 Jul 2002 13:37:19 +0200
- Subject: Re: Concise Instructions for Doing a gcc Cross-Compile in CYGWINfor FreeBSD
- Organization: Jan at Appel
- References: <000101c22e46$3e781240$0200a8c0@lifelesswks>
"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.
Jan.
--- bin/deb2cyg~ Thu Jul 18 13:33:20 2002
+++ bin/deb2cyg Thu Jul 18 13:35:43 2002
@@ -1,9 +1,10 @@
#! /bin/bash
# convert a deb file to a cygwin setup.exe tarball
-export PKG=`echo $1 | sed -e 's/_.*//'`
+debname=$(basename $1)
+export PKG=`echo $debname | sed -e 's/_.*//'`
echo package $PKG
-export VER=`echo $1 | sed -e 's/[^_]*_//' -e 's/_.*//'`
+export VER=`echo $debname | sed -e 's/[^_]*_//' -e 's/_.*//'`
echo version $VER
export REL=1
echo cygwin release 1
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org