1 2 3 4 5 6
#!sh ext=${1##*.} name=${1%.*} (echo "const char *${name}_${ext}_src =";\ sed 's/..*/"&\\n"/' $1;\ echo ';') > obj/${name}_${ext}.inc