[perl-DBI] Preserve time stamp when fixing encoding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit b909a25b12953359753bbc517378b806b9282b25
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Fri Dec 12 12:40:38 2014 +0100

    Preserve time stamp when fixing encoding

 perl-DBI.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/perl-DBI.spec b/perl-DBI.spec
index 3746f39..243163a 100644
--- a/perl-DBI.spec
+++ b/perl-DBI.spec
@@ -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
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux