#!/bin/sh
#
#
#	xtrojka (c) 1994,1995,1996 Maarten Los
#
#	#include "COPYRIGHT"	
#
#	created:	18.ii.1996
#	modified:
#
#	This script creates a C-source resource file from the 
#	original 'XTrojka' resource. 
#	Also, it makes a header file containing string definitions
#	for non-Xresource loadable strings
#
#	These files will be included
#	in the source code as a fall-back resource.
#
INPUT=XTrojka
RESFILE=_resdefs.h
HFILE=_strdefs.h
H="/* hoi */"

#
# create the res-file
#
echo "/* Automatically generated by $0. Do not edit */" > $RESFILE
cat $INPUT | sed -e '/^!/d' | awk '{ printf("\"%s\",\n", $0) }' >> $RESFILE
echo NULL >> $RESFILE

#
# create the strings file
#
echo "/* Automatically generated by $0. Do not edit */" > $HFILE
cat $INPUT | sed -ne's/^!STR/#define/gp' >> $HFILE


