Set dead time to flat 0.9ms until I can get a chance to measure it with the new drive...
[freeems-vanilla.git] / bin / update.copyright.2013-2014.bash
blob5f9b9160811567a8568e634a687042f9f44ad487
1 #!/bin/bash
3 # FreeEMS - the open source engine management system
5 # Copyright 2010-2014 Fred Cooke
7 # This file is part of the FreeEMS project.
9 # FreeEMS software is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # FreeEMS software is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with any FreeEMS software. If not, see http://www.gnu.org/licenses/
22 # We ask that if you make any changes to this file you email them upstream to
23 # us at admin(at)diyefi(dot)org or, even better, fork it on www.github.com!!!
25 # Thank you for choosing FreeEMS to run your engine!
27 if [ $# -ne 1 ]; then
28 echo "Wrong arg count! $#"
29 exit 1
32 if [ ! -e "$1" ]; then
33 echo "$1 doesn't exist!"
34 exit 1
37 if [ ! -f "$1" ]; then
38 echo "$1 is not a file"
39 exit 1
43 # The following two lines take a file with format <num><space><num><space><path/filename> and look for years that need updating.
44 for f in $(perl -lne '/^\d+\s+\d+\s+(.*)/ && print $1' $1); do perl -i -lpe 's/-2013/-2014/g' "$f"; done # Update existing ranges
45 for f in $(perl -lne '/^\d+\s+\d+\s+(.*)/ && print $1' $1); do perl -i -lpe 's/2013 /2013-2014 /g' "$f"; done # Update singular years to ranges
46 # Update to yearset before using, list generated with git diff --numstat lasthashpreviousyear lasthashcurrentyear -- src