CygUtils - Utilities for Cygwin

UP
CygUtils Home

perl-contrib

Various useful stuff related to perl that folks have sent me.


Using ActiveState Perl with cygwin

This stub executable was contributed by Geoff Hart. His announcement is quoted below:

In case anyone is interested in using Activestate's Perl distribution with CYGWIN, I have made a small tool that seems to work. It's a "perl.exe" executable, which translates the command line arguments from Cygwin to Win32, then invokes the perl interpreter *directly* from the Activestate .dll (I didn't want to spawn a subprocess).

Of course, this doesn't fix any file name translation *within* the running script, so if you need that, this won't work. For example, if your script accepts file names as input, those paths would need to be Win32 valid. But it handles \ or / just fine.

UPDATE: there's a new version below. This one is much easier to build, and Geoff says the code itself is improved over the previous version. However, he still hasn't knocked the problem with how STDIN is inherited by perl subprocesses.

This software is not supported by cygutils; if you have questions, contact Geoff Hart (email address is in the build instructions in the source zipfile).

downloads


rpm2cpio

This little utility, contributed by Suhaib Siddiqi uses perl to extract the contents from an rpm without installing it. You also need to download cpio, which you can get from this offsite link. Don't forget the readme.

The rpm package distributed here includes an rpm2cpio.exe. This utility differs since it is merely a perl script. This script allows you to unpack the contents of an RPM without having to install the entire rpm package. (Of course, you need perl and cpio installed to use this script, so...)

Invoke the utility using the following commandline:

rpm2cpio my.rpm | cpio -i --make-directories

This will unpack the files contained within my.rpm into a directory tree below the current directory. This software is not supported by cygutils; if you have questions, contact Suhaib Siddiqi.

downloads


makerpm.pl

This script, based on the one at http://www.perl.com/CPAN/modules/by-authors/id/JWIED/, is modified to support building rpm's of perl modules in cygwin.

The following description is blatantly copied from www.perl.com

makerpm.pl is a script for generating RPM packages from Perl packages. It is based on the standard MakeMaker mechanism, thus hopefully compliant to both Perl and RPM standards. To use it, you simply

downloads


CygUtils Home

Last modified: Sun Jun 10 19:04:39 Eastern Daylight Time 2001