[irstlm] 132/146: Implemented workaround to handle plsa and plsa.sh in update_completion.

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:37:17 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 4f1428ea1ff03793ac56bb47da1d84acdb27f9b0
Author: Giulio Paci <giuliopaci at gmail.com>
Date:   Wed May 4 12:00:15 2016 +0200

    Implemented workaround to handle plsa and plsa.sh in update_completion.
---
 debian/scripts/update_completion | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/scripts/update_completion b/debian/scripts/update_completion
index d0bf535..06983cc 100755
--- a/debian/scripts/update_completion
+++ b/debian/scripts/update_completion
@@ -2,7 +2,7 @@
 
 mkdir -p tmp
 BINNAMES=""
-BINNAMES=$(find  debian/irstlm/usr/lib/irstlm/bin/ -type f | sed -e 's#^.*/##' -e 's/[.]\(sh\|pl\)$//g' | tr "\n" " ")
+BINNAMES=$(find  debian/irstlm/usr/lib/irstlm/bin/ -type f | sed -e 's#^.*/##' -e 's/plsa\.sh$/plsa.sh.sh/g' -e 's/[.]\(sh\|pl\)$//g' | tr "\n" " ")
 
 cat<<EOF
 # Debian GNU/Linux irstlm completion
@@ -33,8 +33,8 @@ EOF
 
 find  debian/irstlm/usr/lib/irstlm/bin/ -type f | while read bin
 do
-    BINNAME=$(basename "$bin" | sed -e 's/[.]\(sh\|pl\)$//g')
-    IRSTLM=debian/irstlm/usr/lib/irstlm/ LD_LIBRARY_PATH=debian/libirstlm0/usr/lib/ "$bin" -h  2>&1 | cat > tmp/"$BINNAME"
+    BINNAME=$(basename "$bin" | sed -e 's/plsa\.sh$/plsa.sh.sh/g' -e 's/[.]\(sh\|pl\)$//g')
+    IRSTLM=debian/irstlm/usr/lib/irstlm/ LD_LIBRARY_PATH=debian/libirstlm1/usr/lib/*/ "$bin" -h  2>&1 | cat > tmp/"$BINNAME"
     cat tmp/"$BINNAME" | grep "^[[:space:]]*-" | sed -e 's/[(].*//g' -e 's/\([>]\).*/\1/g' -e 's/^[[:space:]]*\|[[:space:]]*$//g' | grep -v '^-h\([[:space:]]\|[[:space:]]*,\)' > tmp/"$BINNAME".preprocess
     awk '(TMP > 0) { print $1 }; /^Parameters:/ { TMP=1 };' tmp/"$BINNAME"  | sed -e 's/^.../-&/' -e 's/^../-&/' -e 's/:.*/=/' | grep -v '^--\?\(Help\|h\)=\?$' >> tmp/"$BINNAME".preprocess
 
@@ -65,4 +65,4 @@ complete -o bashdefault -o default -o nospace -F _irstlm irstlm
 
 
 # vim:ft=sh:
-EOF
\ No newline at end of file
+EOF

-- 
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