1#!/bin/sh 2 3rm -f ${1} 4echo '/*' >>${1} 5echo ' * This file is generated automatically from the default' >>${1} 6echo ' * twm bindings file system.twmrc by the twm Makefile.' >>${1} 7echo ' */' >>${1} 8echo '' >>${1} 9echo 'const unsigned char *defTwmrc[] = {' >>${1} 10sed \ 11 -e '/^#/d' \ 12 -e 's/"/\\"/g' \ 13 -e 's/^/ (const unsigned char *) "/' \ 14 -e 's/$/",/' \ 15 <${2} \ 16 >>${1} 17echo ' (const unsigned char *) 0 };' >>${1} 18