#
# Author: Thomas E. Dickey <dickey@clark.net> 1997
#
-# $Id: MKexpanded.sh,v 1.6 1998/02/11 12:13:54 tom Exp $
+# $Id: MKexpanded.sh,v 1.7 1998/11/11 20:15:39 Alexander.V.Lukyanov Exp $
#
# Script to generate 'expanded.c', a dummy source that contains functions
# corresponding to complex macros used in this library. By making functions,
TMP=gen$$.c
trap "rm -f $TMP" 0 1 2 5 15
-cat >expanded.c <<EOF
+cat <<EOF
/* generated by MKexpanded.sh */
#include <curses.priv.h>
#include <term.h>
}
EOF
-$preprocessor $TMP 2>/dev/null | sed -e '1,/^IGNORE$/d' >>expanded.c
+$preprocessor $TMP 2>/dev/null | sed -e '1,/^IGNORE$/d'
-cat >>expanded.c <<EOF
+cat <<EOF
#else /* ! NCURSES_EXPANDED */
void _nc_expanded(void) { }
#endif /* NCURSES_EXPANDED */