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 <[EMAIL PROTECTED]>, Public Domain +# updated for ooo-build by Petr Mladek <[EMAIL PROTECTED]>, 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) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]