The Artima Developer Community
Sponsored Link

Java Buzz Forum
ActiveState Perl Under Cygwin Bash

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
ActiveState Perl Under Cygwin Bash Posted: Mar 23, 2005 1:10 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: ActiveState Perl Under Cygwin Bash
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

On my current project, we use MPC to generate Visual Studio .NET 2003 solution files. It's a set of Perl scripts. Earlier this month, MPC started to fail under Cygwin Perl, and I have to uninstall it and start using ActiveState Perl. To keep on doing what I do, running the Perl scripts from the Cygwin bash shell, I wrote a little bash script, named it perl and put its directory in the PATH in front of the ActiveState Perl's directory:

#!/bin/bash
#
# Call ActiveState Perl with path-like parameters converted from
# Cygwin format to Windows format.
#
ACTIVESTATE_PERL=C:/Perl/bin/perl.exe

declare -a args
declare -i index

until [ -z "$1" ]
do
  if echo $1 | egrep -q '^/|^\.'
  then
    args[index]=`cygpath -a -w $1`
  else
    args[index]=$1
  fi
  ((index++))
  shift
done

$ACTIVESTATE_PERL ${args[@]}

Read: ActiveState Perl Under Cygwin Bash

Topic: DataVision 0.9.2 released - open source Java Reporting in 11 languages Previous Topic   Next Topic Topic: Google Code: Open Source

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use