summaryrefslogtreecommitdiffstats
path: root/kalyptus/findperl
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-01 19:19:07 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-01 19:19:07 -0600
commitcf5706eb5adbe5858d87118d200e233abfa1271f (patch)
tree9c4da2dc3e403f2cdfa2cf8d632098a12fdad2e4 /kalyptus/findperl
parent795a0355a40293affc7164507e918440d4a828d6 (diff)
downloadlibtqt-perl-cf5706eb5adbe5858d87118d200e233abfa1271f.tar.gz
libtqt-perl-cf5706eb5adbe5858d87118d200e233abfa1271f.zip
Update embedded kalyptus installation
Diffstat (limited to 'kalyptus/findperl')
-rwxr-xr-xkalyptus/findperl17
1 files changed, 17 insertions, 0 deletions
diff --git a/kalyptus/findperl b/kalyptus/findperl
new file mode 100755
index 0000000..451758d
--- /dev/null
+++ b/kalyptus/findperl
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+test -f perlbin && rm perlbin
+
+for p in `echo $PATH | tr ":" " "`
+do
+ if [ -x $p/perl ]
+ then
+ if $p/perl -e 'require 5.000;'
+ then
+ echo $p/perl > perlbin
+ exit 0
+ fi
+ fi
+
+done
+exit 1