"Robert Collins" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org

Reply via email to