Skip to content

Instantly share code, notes, and snippets.

@JaSei
Created September 14, 2015 21:43
Show Gist options
  • Save JaSei/62e2ede3d0b611481af7 to your computer and use it in GitHub Desktop.
Save JaSei/62e2ede3d0b611481af7 to your computer and use it in GitHub Desktop.
activestates perl in cygwin
#!/bin/bash
cyg_args () {
for i in $@
do
if [ -e "$i" ]; then
echo $(cygpath -w "$i")
elif [[ $i == "-"* ]]; then
echo $i
else
echo $i
fi
done
}
params=$(cyg_args $@)
PERL5LIB=$(cygpath -w $(PWD)/extlib/lib/perl5) c:/Perl64/bin/perl.exe $params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment