[saphire] use sed instead of dos2unit

Mamoru Tasaka mtasaka at fedoraproject.org
Tue Jan 10 09:21:12 UTC 2012


commit 8a2c0b19053e15f601fe35462839550018f64193
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date:   Tue Jan 10 18:21:08 2012 +0900

    use sed instead of dos2unit

 saphire.spec |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/saphire.spec b/saphire.spec
index 14cac22..b032faa 100644
--- a/saphire.spec
+++ b/saphire.spec
@@ -70,7 +70,7 @@ do
 	touch -r $f $f.stamp
 	iconv -f EUC-JP -t UTF-8 $f > $f.utf8 && mv -f $f.utf8 $f || rm -f $f.utf8
 	iconv -f SHIFT-JIS -t UTF-8 $f > $f.utf8 && mv -f $f.utf8 $f || rm -f $f.utf8
-	dos2unix $f
+	sed -i -e 's|\r||' $f
 	touch -r $f.stamp $f
 	rm -f $f.stamp
 done


More information about the scm-commits mailing list