From d0b5ec9da84ca7cf096d491419b968e3ec5ece72 Mon Sep 17 00:00:00 2001 From: David Paleino Date: Wed, 6 Apr 2011 12:48:18 +0200 Subject: Implement triggers: activate completions when something is installed in $PATH (drawback: paths are hardcoded in debian/triggers) --- debian/rules | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 5096e1c7..6f101697 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,27 @@ override_dh_auto_configure: [ -d test/log ] || mkdir -p test/log [ -d test/tmp ] || mkdir -p test/tmp +override_dh_auto_build: + dh_auto_build + + grep -w "have" completions/* | \ + grep "have " | \ + sed -e "s/ || have//g" \ + -e "s/ ||.*//g" \ + -e "s/ &&\(^ have\)*//g" \ + -e "/[ ]*#/d" \ + -e "s/\[.*\] //g" \ + -e "s/ {//g" \ + -e "s/:.*have /:/g" \ + -e "s/ \\\//g" \ + -e "s/ complete -F .*//g" \ + -e "s/;.*//g" \ + -e "s/ _.*()//g" \ + -e "s/)//g" \ + -e "s/ \[.*\]//g" \ + -e "/.*UNAME.*/d" \ + > debian/compdict + override_dh_compress: dh_compress -Xcompletions -- cgit v1.2.1