PKGBUILDs/core/man-db/convert-mans
2022-02-06 17:19:48 +00:00

11 lines
188 B
Bash

#!/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