]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- specutfundo()
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 3 May 2007 22:15:41 +0000 (22:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-build.sh -> 1.27

rpm-build.sh

index 9e93738290edbac3f439ec4023cc1f7f9e2aaa92..b7848d69ed5bd7586aac24257c0ac1cac3d801c8 100644 (file)
@@ -20,6 +20,15 @@ alias $dist-provides="ipoldek-$dist what-provides"
 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 "$@"
This page took 0.055609 seconds and 4 git commands to generate.