]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tty/MKexpanded.sh
ncurses 5.0
[ncurses.git] / ncurses / tty / MKexpanded.sh
similarity index 95%
rename from ncurses/MKexpanded.sh
rename to ncurses/tty/MKexpanded.sh
index c0fca5f28af0d7b85bb1d3b7118cd4edfe83db28..b008becc4f07c4e2d8d54350e618579228b04985 100755 (executable)
@@ -29,7 +29,7 @@
 #
 # 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,
@@ -50,7 +50,7 @@ fi
 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>
@@ -94,9 +94,9 @@ void _nc_UpdateAttrs(chtype c)
 }
 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 */