#!/bin/sh -
# -*- sh -*-
# (C) 1999 Greg J. Badros
# cpp-sed-nl runs cpp but permits macros to
# expand to multiple lines by interpreting @@ in
# the cpp source file as a newline (and uses sed
# to replace @@ with newlines.  Also removes
# trailing whitespace
# This script is run by startscwm
if which cpp >/dev/null 2>&1; then
    CPP=cpp
elif test -x /lib/cpp; then
    CPP=/lib/cpp
fi
# -P option inhibits generation of "# line "
# lines that cause xrdb angst.
$CPP -P "$@" | sed -e 's/@@/\
/g' -e 's/[ \t]*$//g'
