CVS:oo-debian-files/bin generate_bash_completion.pl,1.5,1.6
Update of /cvs/debian-openoffice/oo-debian-files/bin
In directory gluck:/tmp/cvs-serv22822/bin
Modified Files:
generate_bash_completion.pl
Log Message:
backport ooo-build HEAD changes to generate-bash-completion.pl and suppress output when trying to remove /etc/openoffice and /var/state/openoffice
Index: generate_bash_completion.pl
===================================================================
RCS file: /cvs/debian-openoffice/oo-debian-files/bin/generate_bash_completion.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- generate_bash_completion.pl 15 Feb 2005 22:10:58 -0000 1.5
+++ generate_bash_completion.pl 13 Mar 2005 21:28:31 -0000 1.6
@@ -1,6 +1,7 @@
#!/usr/bin/perl
# script to generate OOo bash_completion file for the main applications
# written by Rene Engelhard <rene@debian.org>, Public Domain
+# updated for ooo-build by Petr Mladek <pmladek@suse.cz>, Public Domain
# yes, this script probably is not real good code :) but still easier
# to maintain than adding those entries statically many times in
# a file...
@@ -71,7 +72,7 @@
$extensions="$extensions @WEBDOCS";
}
foreach (split(/ /,$extensions)) {
- print BCFILE "\t\t\t\tcompgen -G \"\${cur}*.$_\"\n";
+ print BCFILE "\t\t\t\tcompgen -G \"\${cur}*\" -X \'!*.$_\'\n";
}
print BCFILE "\t\t\t\tcompgen -W \"\$options\" | grep \"^\$cur\"\n";
print BCFILE "\t\t\t) )\n";
@@ -79,7 +80,7 @@
print BCFILE "\tesac\n\n";
print BCFILE "\treturn 0\n\n";
print BCFILE "}\n";
- print BCFILE "complete -F _$_ -o filenames $_\n\n";
+ print BCFILE "complete -d -X \'.[^./]*\' -F _$APPS{$app} -o filenames $APPS{$app}\n\n";
}
close(BCFILE)
Reply to:
- Prev by Date:
CVS:oo-deb/debian changelog,1.338.2.25.2.12,1.338.2.25.2.13 rules,1.214.2.14.2.15,1.214.2.14.2.16
- Next by Date:
CVS:oo-debian-files/debian changelog,1.126,1.127 postrm,1.2,1.3
- Previous by thread:
CVS:oo-deb/debian changelog,1.338.2.25.2.12,1.338.2.25.2.13 rules,1.214.2.14.2.15,1.214.2.14.2.16
- Next by thread:
CVS:oo-debian-files/debian changelog,1.126,1.127 postrm,1.2,1.3
- Index(es):