Preserve time stamp when fixing encoding

This commit is contained in:
Petr Písař 2014-12-12 12:40:38 +01:00
parent 6f5e213d83
commit b909a25b12
1 changed files with 5 additions and 2 deletions

View File

@ -101,8 +101,11 @@ the use of existing DBI frameworks like DBIx::Class.
%prep
%setup -q -n DBI-%{version}
iconv -f iso8859-1 -t utf-8 lib/DBD/Gofer.pm >lib/DBD/Gofer.pm.new &&
mv lib/DBD/Gofer.pm{.new,}
for F in lib/DBD/Gofer.pm; do
iconv -f ISO-8859-1 -t UTF-8 < "$F" > "${F}.utf8"
touch -r "$F" "${F}.utf8"
mv "${F}.utf8" "$F"
done
chmod 644 ex/*
chmod 744 dbixs_rev.pl
# Fix shell bangs