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 CYGWINfor 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.

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


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