SOURCES: rpm-build.sh - specutfundo()

glen glen at pld-linux.org
Fri May 4 00:15:47 CEST 2007


Author: glen                         Date: Thu May  3 22:15:47 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- specutfundo()

---- Files affected:
SOURCES:
   rpm-build.sh (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SOURCES/rpm-build.sh
diff -u SOURCES/rpm-build.sh:1.26 SOURCES/rpm-build.sh:1.27
--- SOURCES/rpm-build.sh:1.26	Fri Mar  2 00:03:35 2007
+++ SOURCES/rpm-build.sh	Fri May  4 00:15:41 2007
@@ -20,6 +20,15 @@
 alias $dist-tag="./builder -cf -T $(echo $dist | tr '[a-z]' '[A-Z]')-branch -r HEAD"
 alias $dist-verify=dist-verify
 
+# undo spec utf8
+# note: it will do it blindly, so any lang other than -pl is most likely broken
+specutfundo() {
+	local spec="$1"
+	iconv -futf8 -tlatin2 "$spec" > m
+	sed -e 's/\.UTF-8//' m > "$spec"
+	rm -f m
+}
+
 dist-verify() {
 	poldek --sn $dist --sn $dist-ready --up
 	poldek --sn $dist --sn $dist-ready --noignore --verify=deps "$@"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm-build.sh?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list