Commit 508ea298 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Reading yearspans from the file was broken.

parent adb17870
#!/bin/bash
# $Id: update-copyright,v 1.6 1999/05/24 09:00:28 ceder Exp $
# $Id: update-copyright,v 1.7 1999/05/24 09:22:55 ceder Exp $
# Copyright (C) 1994-1996, 1999 Lysator Academic Computer Association.
#
# This program is free software; you can redistribute it and/or modify
......@@ -28,8 +28,10 @@ do
else echo "$file:1: no Copy"right" line found" >&2 ; continue;
fi
tr , '\012' < /tmp/$$.yc \
| sed -n 's/.*\([0-9][0-9][0-9][0-9]\)\(-\([0-9][0-9][0-9][0-9]\)\)?.*/\1 \2/p' \
| awk 'NF == 2 { for(i=$1; i<=$2; ++i) print $i } NF == 1' \
| sed -n \
-e 's/.*\([12][0-9][0-9][0-9]\)-\([12][0-9][0-9][0-9]\).*/\1 \2/p' \
-e 's/.*\([12][0-9][0-9][0-9]\).*/\1/p' \
| awk 'NF == 2 { for(i=$1; i<=$2; ++i) print i } NF == 1' \
> /tmp/$$.year
if cvs log $file > /tmp/$$.yc ; then : ;
else echo "$file:1: cvs log failed" >&2 ; continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment