#! /bin/sh
# 
# Motif Tools Library, Version 3.1
# $Id: xbm2res,v 1.1.1.1 2001/02/10 13:52:45 motiftools Exp $
# 
# Written by David Flanagan.
# Copyright (c) 1992-2001 by David Flanagan.
# All Rights Reserved.  See the file COPYRIGHT for details.
# This is open source software.  See the file LICENSE for details.
# There is no warranty for this software.  See NO_WARRANTY for details.
#

sed '
/#define[ 	][ 	]*.*_width[ 	]/ {
	h
	s/#define[ 	][ 	]*\(.*\)_width[ 	].*/_Bitmaps_*\1: \\/
	p
	g
}

/;$/!{
	s/^\(.*\)$/\1\\n\\/
}
' $@
