[maven2] 41/87: * Added bash-completion file (Closes: #477443).
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Fri Feb 27 13:59:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven2.
commit 702c054d5676072e37b0f767415cd8e51a641e1c
Author: Michael Koch <konqueror at gmx.de>
Date: Fri Apr 25 10:01:38 2008 +0000
* Added bash-completion file (Closes: #477443).
---
debian/bash_completion.d/maven2 | 66 +++++++++++++++++++++++++++++++++++++++++
debian/changelog | 4 +++
debian/maven2.install | 2 ++
debian/rules | 2 +-
4 files changed, 73 insertions(+), 1 deletion(-)
diff --git a/debian/bash_completion.d/maven2 b/debian/bash_completion.d/maven2
new file mode 100644
index 0000000..b1547ed
--- /dev/null
+++ b/debian/bash_completion.d/maven2
@@ -0,0 +1,66 @@
+_mvn()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+ # phases for the default lifecycle
+ default_phases="validate
+ initialize
+ generate-sources
+ process-sources
+ generate-resources
+ process-resources
+ compile
+ process-classes
+ generate-test-sources
+ process-test-sources
+ generate-test-resources
+ process-test-resources
+ test-compile
+ process-test-classes
+ test
+ package
+ pre-integration-test
+ integration-test
+ post-integration-test
+ verify
+ install
+ deploy"
+
+ # phases for the clean lifecycle
+ clean_phases="pre-clean
+ clean
+ post-clean"
+
+ # phases for the site lifecycle
+ site_phases="pre-site
+ site
+ post-site
+ site-deploy"
+
+ opts="--file --debug --batch-mode --lax-checksums --strict-checksums --check-plugin-updates --define --errors --fail-at-end --fail-fast --fail-never --help --non-recursive --no-plugin-registry --no-plugin-updates --offline --activate-profiles --quiet --reactor --settings --update-snapshots --update-plugins --version ${default_phases} ${clean_phases} ${site_phases}"
+
+ if [[ ${cur} == -* ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+
+ case "${prev}" in
+ "--file")
+ local pom_files=$(for x in `find -type f -name pom.xml` ; do echo ${x} ; done)
+ COMPREPLY=( $(compgen -W "${pom_files}" -- ${cur} ))
+ return 0
+ ;;
+ ${default_phases})
+ ;;
+ *)
+ ;;
+ esac
+
+ COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
+ return 0
+}
+complete -F _mvn mvn m2
+
diff --git a/debian/changelog b/debian/changelog
index e4e58f4..7ffd6f4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,10 @@
maven2 (2.0.9-1) unstable; urgency=low
+ [ Paul Cager ]
* New upstream version
+
+ [ Michael Koch ]
+ * Added bash-completion file (Closes: #477443).
-- Paul Cager <paul-debian at home.paulcager.org> Thu, 24 Apr 2008 23:46:29 +0100
diff --git a/debian/maven2.install b/debian/maven2.install
index 111aef0..047073c 100644
--- a/debian/maven2.install
+++ b/debian/maven2.install
@@ -3,3 +3,5 @@ apache-maven/src/bin/m2 usr/bin
apache-maven/src/bin/m2.conf etc/maven2
apache-maven/src/conf/settings.xml /etc/maven2
+
+debian/bash_completion/maven2 etc/bash_completion.d
diff --git a/debian/rules b/debian/rules
index c6484ee..35e1ca6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,4 @@
-#!/usr/bin/make -f
+!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven2.git
More information about the pkg-java-commits
mailing list