scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit f9c1d71f5a71c801fa7ee5fa9d8f94d9075358a1
parent d7ad0e9d8ec388524fd90a99fb4a342d28564f5a
Author: lostd <lostd@2f30.org>
Date:   Sat, 23 Nov 2013 16:44:39 +0200

better comment and style

Diffstat:
cvspast | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cvspast b/cvspast @@ -17,14 +17,14 @@ fi N=$(echo $2 | sed 's/[^0-9]//g') test -n "$N" || N=3 -# escape filename for use in sed +# escape filename for use in grep/sed ESC='s/[\/()[]$*.^|]/\\&/g' F=$(basename $FILE | sed $ESC) D=$(dirname $FILE) # current revision CUR=$(grep "^/$F/" $D/CVS/Entries \ - | sed "s|^/${F}/1\.\([0-9]\+\)/.*$|\1|") + | sed "s|^/$F/1\.\([0-9]\+\)/.*$|\1|") if test -z "$CUR"; then echo "File not in CVS!" 1>&2 exit 2