[med-svn] [Git][med-team/praat][master] 3 commits: Include Bash completion script for the praat command

Rafael Laboissière (@rafael) gitlab at salsa.debian.org
Wed Mar 26 10:19:05 GMT 2025



Rafael Laboissière pushed to branch master at Debian Med / praat


Commits:
30b99547 by Rafael Laboissière at 2025-03-26T04:44:51-03:00
Include Bash completion script for the praat command

+ d/praat.bash: New script
+ d/install.in: Declare installation rule
+ d/rules: Define destination directory

Gbp-Dch: Full

- - - - -
66c21e1a by Rafael Laboissière at 2025-03-26T04:45:38-03:00
d/control: Bump Standards-Version to 4.7.2 (no changes needed)

- - - - -
6cd283c3 by Rafael Laboissière at 2025-03-26T04:46:49-03:00
d/changelog: Add entry for release 6.4.27+dfsg-2

Gbp-Dch: Ignore

- - - - -


5 changed files:

- debian/changelog
- debian/control
- debian/install.in
- + debian/praat.bash
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+praat (6.4.27+dfsg-2) unstable; urgency=medium
+
+  * Include Bash completion script for the praat command
+    + d/praat.bash: New script
+    + d/install.in: Declare installation rule
+    + d/rules: Define destination directory
+  * d/control: Bump Standards-Version to 4.7.2 (no changes needed)
+
+ -- Rafael Laboissière <rafael at debian.org>  Tue, 25 Mar 2025 09:21:55 -0300
+
 praat (6.4.27+dfsg-1) unstable; urgency=medium
 
   * New upstream version 6.4.27+dfsg


=====================================
debian/control
=====================================
@@ -12,7 +12,7 @@ Build-Depends: debhelper-compat (= 13),
                pandoc,
                xauth,
                xvfb
-Standards-Version: 4.7.1
+Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/med-team/praat
 Vcs-Git: https://salsa.debian.org/med-team/praat.git
 Homepage: https://www.praat.org


=====================================
debian/install.in
=====================================
@@ -2,5 +2,6 @@ praat				@BINDIR@
 praat_nogui			@BINDIR@
 debian/praat-launch		@BINDIR@
 debian/praat.xpm		@PIXDIR@
+debian/praat.bash		@CPLDIR@
 main/praat-480.svg		@SVGDIR@
 main/praat.desktop		@APPDIR@


=====================================
debian/praat.bash
=====================================
@@ -0,0 +1,44 @@
+# -*- shell-script -*-
+# Bash command completion for ‘praat(1)’.
+#
+# Copyright (C) 2025 Rafael Laboissière
+#
+# This script is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the
+# Free Software Foundation, either version 3 of the License, or (at your
+# option) any later version.
+#
+# This script is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+# Public License for more details.
+#
+# See <https://www.gnu.org/licenses/>.
+
+shopt -s progcomp
+
+_praat_completion () {
+    COMPREPLY=()
+
+    local cur="${COMP_WORDS[COMP_CWORD]}"
+    local prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+    local opts="--help --version"
+    opts+=" --run --open --new-open --send --new-send"
+    opts+=" --no-pref-files --no-plugins --pref-dir -u --utf16"
+    opts+=" -8 --utf8 -a --ansi --trace --hide-picture"
+
+    case "${prev}" in
+        --run|--open|--new-open|--send|--new-send)
+            COMPREPLY=( $(compgen -A file -- ${cur}) )
+            ;;
+        --pref-dir)
+            COMPREPLY=( $(compgen -A directory -- ${cur}) )
+            ;;
+        *)
+            COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
+            ;;
+    esac
+}
+
+complete -F _praat_completion praat


=====================================
debian/rules
=====================================
@@ -9,9 +9,11 @@ PIXDIR = usr/share/pixmaps
 SVGDIR = usr/share/icons/hicolor/scalable/apps
 BINDIR = usr/bin
 APPDIR = usr/share/applications
+CPLDIR = usr/share/bash-completion/completions
 
 SUBSTCMD = sed 's:@BINDIR@:$(BINDIR):g;s:@PIXDIR@:$(PIXDIR):g;	\
-                s:@SVGDIR@:$(SVGDIR):g;s:@APPDIR@:$(APPDIR):g'
+                s:@SVGDIR@:$(SVGDIR):g;s:@APPDIR@:$(APPDIR):g;	\
+                s:@CPLDIR@:$(CPLDIR):g;'
 
 include /usr/share/dpkg/architecture.mk
 -include /usr/share/dpkg/buildtools.mk



View it on GitLab: https://salsa.debian.org/med-team/praat/-/compare/41e850384310c176feb073c4104eb0b7e45c157c...6cd283c35c3291f8459dd7b397194d540af24aee

-- 
View it on GitLab: https://salsa.debian.org/med-team/praat/-/compare/41e850384310c176feb073c4104eb0b7e45c157c...6cd283c35c3291f8459dd7b397194d540af24aee
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250326/21d2c61a/attachment-0001.htm>


More information about the debian-med-commit mailing list