From: Francois Fleuret Date: Fri, 10 Feb 2012 16:16:34 +0000 (+0100) Subject: Updated the copyright headers and the version to 1.1.6. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=40783cf11bb49618d80fa3f588632a1c61c0ce2d;p=selector.git Updated the copyright headers and the version to 1.1.6. --- diff --git a/Makefile b/Makefile index 203c965..ad1c020 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # selector is a simple command line utility for selection of strings # with a dynamic pattern-matching. # -# Copyright (c) 2009 Francois Fleuret +# Copyright (c) 2009, 2010, 2011 Francois Fleuret # Written by Francois Fleuret # # This file is part of selector. diff --git a/bash-selector.sh b/bash-selector.sh index e7fb461..cbf8ed5 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -1,31 +1,34 @@ #!/bin/bash -######################################################################### -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the version 3 of the GNU General Public License # -# as published by the Free Software Foundation. # -# # -# This program is distributed in the hope that it will be useful, but # -# WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # -# General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # -# Written by and Copyright (C) Francois Fleuret # -# Contact for comments & bug reports # -######################################################################### - -# This script installs two key-bindings: +# selector is a simple command line utility for selection of strings +# with a dynamic pattern-matching. # -# Alt-r for selector-based command history +# Copyright (c) 2009, 2010, 2011, 2012 Francois Fleuret +# Written by Francois Fleuret # -# Alt-c for selector-based directoy history +# This file is part of selector. # -# Note that you have to call it with "source bash-selector.sh" -# otherwise the key-bindings will not be effective in your current -# bash +# selector is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 3 as +# published by the Free Software Foundation. +# +# selector is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with selector. If not, see . + +# This script installs two key-bindings: +# +# Alt-r for selector-based command history +# +# Alt-c for selector-based directoy history +# +# Note that you have to call it with "source bash-selector.sh" +# otherwise the key-bindings will not be effective in your current +# bash if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then echo "This script must be called with 'source $(basename $0)'" >&2 diff --git a/selector.1 b/selector.1 index 4d9f3d1..ab2df59 100644 --- a/selector.1 +++ b/selector.1 @@ -1,4 +1,4 @@ -.TH "SELECTOR" "1.1.5" "November 2011" "Francois Fleuret" "User Commands" +.TH "SELECTOR" "1.1.6" "February 2012" "Francois Fleuret" "User Commands" \" This man page was written by Francois Fleuret \" and is distributed under a Creative Commons Attribution-Share Alike diff --git a/selector.c b/selector.c index effd014..0cb82ea 100644 --- a/selector.c +++ b/selector.c @@ -3,7 +3,7 @@ * selector is a simple command line utility for selection of strings * with a dynamic pattern-matching. * - * Copyright (c) 2009, 2010, 2011 Francois Fleuret + * Copyright (c) 2009, 2010, 2011, 2012 Francois Fleuret * Written by Francois Fleuret * * This file is part of selector. @@ -45,7 +45,7 @@ #include #include -#define VERSION "1.1.5" +#define VERSION "1.1.6" #define BUFFER_SIZE 4096 @@ -320,8 +320,9 @@ struct matcher { }; /* Routine to add an interval to a sorted list of intervals - extermities. Returns the number of extremities. This is an effing - nightmare */ + extremities. Returns the resulting number of extremities. + + This routine is an effing nightmare */ int add_interval(int n, int *switches, int start, int end) { int f, g, k;