summaryrefslogtreecommitdiff
path: root/libre-testing/man-db/convert-mans
blob: 58a0224b0b5892125e948331367271a8f01b9a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e
FROM="$1"
TO="$2"
shift ; shift
while [ $# -gt 0 ]
do
        FILE="$1"
        shift
        iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
        mv .tmp.iconv "$FILE"
done