diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /core/man-db/convert-mans |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'core/man-db/convert-mans')
-rw-r--r-- | core/man-db/convert-mans | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/man-db/convert-mans b/core/man-db/convert-mans new file mode 100644 index 000000000..58a0224b0 --- /dev/null +++ b/core/man-db/convert-mans @@ -0,0 +1,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 |