[irstlm] 145/146: Added path command to irstlm wrapper script.
Giulio Paci
giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:37:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
giuliopaci-guest pushed a commit to branch master
in repository irstlm.
commit ce97fe08690fc793002994548056ae4f91940ae5
Author: Giulio Paci <giuliopaci at gmail.com>
Date: Tue May 17 08:42:45 2016 +0200
Added path command to irstlm wrapper script.
---
debian/scripts/irstlm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/debian/scripts/irstlm b/debian/scripts/irstlm
index 3eb5c6f..dfe7e41 100755
--- a/debian/scripts/irstlm
+++ b/debian/scripts/irstlm
@@ -41,6 +41,7 @@ get_commands()
| grep . \
;
done
+ echo "path - print IRSTLM path"
echo "help - print help about commands"
}
@@ -62,6 +63,9 @@ EOF
cat<<EOF
EOF
+ elif test x"$cmnd" = x"path"
+ then
+ get_path_usage
else
if [ -x "$IRSTLM_PATH"/"$cmnd" ]
then
@@ -81,6 +85,18 @@ EOF
fi
}
+get_path_usage()
+{
+ cat<<EOF
+
+path - print base IRSTLM binaries path
+
+USAGE:
+ path
+
+EOF
+}
+
get_usage()
{
local cmnd="$1"
@@ -123,6 +139,11 @@ then
get_help_usage "$1"
exit 0;
fi
+if test x"$COMMAND" = x"path"
+then
+ echo "$IRSTLM_PATH"
+ exit 0;
+fi
if [ -x "$IRSTLM_PATH"/"$COMMAND" ]
then
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git
More information about the debian-science-commits
mailing list