]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - scripts/convert_to_utf8
script/c2p: allow multiple kernel versions on the command line
[thirdparty/kernel/stable-queue.git] / scripts / convert_to_utf8
CommitLineData
4258a5a4
GKH
1#!/bin/bash
2
3for file in $(ls *.patch); do
4 ISO=$(file "${file}" | grep ISO)
5 if [ "${ISO}" != "" ] ; then
6 echo "Converting ${file}"
7 tmpfile=$(mktemp convert-XXXXX || exit 1)
8 iconv -c --to-code=UTF-8//TRANSLIT "${file}" > "${tmpfile}"
9 mv "${tmpfile}" "${file}"
10 fi
11done
12