Concise Instructions for Doing a gcc Cross-Compile in CYGWIN for FreeBSD
Jan Nieuwenhuizen
janneke@gnu.org
Thu Jul 18 04:37:00 GMT 2002
"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
More information about the Cygwin-apps
mailing list