home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 6
/
AACD06.ISO
/
AACD
/
Programming
/
ICU
/
src
/
icuapps
/
locexp
/
tools
/
emitResourceFromFile.sh
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Linux/UNIX/POSIX Shell Script
|
1999-10-16
|
320 b
|
21 lines
#!/bin/sh
if [ $# -ne 3 ]; then
echo 1>&2 "Usage: $0 resource_tag source_file encoding"
exit 1
fi
if [ ! -f $3 ]; then
echo 1>&2 "$0: can't open file $3"
exit 1
fi
echo
echo "// From $3 ($2)"
echo " $1 {"
echo -n " \""
uconv -f $2 -t UTF16_BigEndian $3 | escapeForBundle
echo -n "\""
echo " }"
echo