+++ /dev/null
-#!/bin/sh
-R="$1"
-if test -z "$R"; then
- echo "Supply range. Eg 2006-2009"
- exit 1
-fi
-for f in `find . \( -name '*.[ch]' -or -name Makefile.am -or -name makefile \
- -or -name '*.cpp' -or -name '*.hpp' -or -name license.txt \
- -or -name README -or -name configure.ac -or -name '*.nsi' \
- -or -name '*.rnc' \) -print`; do
- echo $f
- sed "s/Copyri.*20.*Data/Copyright (C) $R Index Data/g" < $f >${f}_new
- if diff $f ${f}_new >/dev/null; then
- :
- else
- cp ${f}_new ${f}
- fi
- rm ${f}_new
-done
-
+++ /dev/null
-#!/bin/sh
-for f in `find . \( -name '*.[ch]' -or -name '*.cpp' -or -name '*.hpp' \) -print`; do
- echo $f
- sed '/ * Local variables:/ {
-a\
- * c-basic-offset: 4\
- * c-file-style: "Stroustrup"\
- * indent-tabs-mode: nil\
- * End:\
- * vim: shiftwidth=4 tabstop=8 expandtab\
- */\
-
-q
-}' < $f >${f}_new
- mv ${f}_new $f
-done
-