#!/bin/sh
#
# sc2ac - converts a SCEND configuration file to an autoconf.h file as used
#         by the Linux kernel
#
sed '/^!/d
  s/\(.*\.\)*\([^.]*\)/\2/
  /=/{s/\([^=]*\)=\(.*\)/#define \1 \2/p;d;}
  s/.*/#define & 1/'
