[PPL-devel] [GIT] ppl/ppl(master): Improved.
Roberto Bagnara
bagnara at cs.unipr.it
Sun Jan 22 20:44:48 CET 2012
Module: ppl/ppl
Branch: master
Commit: 9cd53027cc4ddcfe5e38030e697e968b26a4cfa1
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=9cd53027cc4ddcfe5e38030e697e968b26a4cfa1
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Sun Jan 22 20:44:03 2012 +0100
Improved.
---
devtools/bump_copyright_years | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/devtools/bump_copyright_years b/devtools/bump_copyright_years
index abf71c8..0fca806 100755
--- a/devtools/bump_copyright_years
+++ b/devtools/bump_copyright_years
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
temp_file=`mktemp /tmp/bump_copyright_years.XXXXXXXXXX` || exit 1
-for k in `find . -type f`
+find . -type f -print0 | while read -d $'\0' file
do
- sed -e "s/Copyright (C) 2010-2012 BUGSENG srl/Copyright (C) 2010-2012 BUGSENG srl/g" <$k >$temp_file
- chmod --reference=$k $temp_file
- mv -f $temp_file $k
+ sed -e "s/Copyright (C) 2010-2012 BUGSENG srl/Copyright (C) 2010-2013 BUGSENG srl/g" <$file >$temp_file
+ chmod --reference=$file $temp_file
+ mv -f $temp_file $file
done
More information about the PPL-devel
mailing list