Skip to content

Commit

Permalink
Add ChkPrm.module
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Feb 12, 2012
1 parent ce96797 commit 32cbed0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/i-nex/.lang/ChkPrm.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# /home/michal/Baazar/i-nex/src/i-nex/.src/ChkPrm.module
# Generated by Gambas compiler

# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n""POT-Creation-Date: 2002-11-01 04:27+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

15 changes: 15 additions & 0 deletions src/i-nex/.src/ChkPrm.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
' Gambas module file

Public Function ChkExec(executable As String) As Boolean

Dim i As Integer

i = InStr(executable, " ")
If i Then executable = Left(executable, i - 1)

Shell "which " & executable & " >/dev/null 2>&1" Wait

If Process.LastValue Then Return False
Return True

End

0 comments on commit 32cbed0

Please sign in to comment.