[pkg-java] r6248 - in trunk/maven2/debian: . bash_completion.d
mkoch at alioth.debian.org
mkoch at alioth.debian.org
Fri Apr 25 10:01:39 UTC 2008
Author: mkoch
Date: 2008-04-25 10:01:38 +0000 (Fri, 25 Apr 2008)
New Revision: 6248
Added:
trunk/maven2/debian/bash_completion.d/
trunk/maven2/debian/bash_completion.d/maven2
Modified:
trunk/maven2/debian/changelog
trunk/maven2/debian/maven2.install
trunk/maven2/debian/rules
Log:
* Added bash-completion file (Closes: #477443).
Added: trunk/maven2/debian/bash_completion.d/maven2
===================================================================
--- trunk/maven2/debian/bash_completion.d/maven2 (rev 0)
+++ trunk/maven2/debian/bash_completion.d/maven2 2008-04-25 10:01:38 UTC (rev 6248)
@@ -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
+
Modified: trunk/maven2/debian/changelog
===================================================================
--- trunk/maven2/debian/changelog 2008-04-25 09:38:19 UTC (rev 6247)
+++ trunk/maven2/debian/changelog 2008-04-25 10:01:38 UTC (rev 6248)
@@ -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
Modified: trunk/maven2/debian/maven2.install
===================================================================
--- trunk/maven2/debian/maven2.install 2008-04-25 09:38:19 UTC (rev 6247)
+++ trunk/maven2/debian/maven2.install 2008-04-25 10:01:38 UTC (rev 6248)
@@ -3,3 +3,5 @@
apache-maven/src/bin/m2.conf etc/maven2
apache-maven/src/conf/settings.xml /etc/maven2
+
+debian/bash_completion/maven2 etc/bash_completion.d
Modified: trunk/maven2/debian/rules
===================================================================
--- trunk/maven2/debian/rules 2008-04-25 09:38:19 UTC (rev 6247)
+++ trunk/maven2/debian/rules 2008-04-25 10:01:38 UTC (rev 6248)
@@ -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
More information about the pkg-java-commits
mailing list