Merge term.h and nterm.h

This commit is contained in:
Andrey A. Chernov 1994-10-10 00:32:19 +00:00
parent 6a5cea9ba2
commit af1f5928f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3481
3 changed files with 19 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Makefile for libmytinfo
# Use 'make update_term_h' manually after changing internal
# mytinfo structures
# $Id: Makefile,v 1.3 1994/10/09 17:50:50 ache Exp $
# $Id: Makefile,v 1.4 1994/10/09 18:38:59 ache Exp $
LIB= mytinfo
SRCS= addstr.c binorder.c buildpath.c caplist.c capsort.c compar.c\
@ -18,10 +18,12 @@ CAPS= 1000
update_term_h: ${.CURDIR}/term.h
beforeinstall:
-cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h > \
/dev/null 2>&1 || \
$(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/term.h \
${DESTDIR}/usr/include
-cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/term.h && \
cmp -s ${.CURDIR}/term.h ${DESTDIR}/usr/include/nterm.h || \
( $(INSTALL) $(COPY) -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/term.h ${DESTDIR}/usr/include; \
rm -f ${DESTDIR}/usr/include/nterm.h; \
ln ${DESTDIR}/usr/include/term.h ${DESTDIR}/usr/include/nterm.h )
capsort.c: mkcapsort
./mkcapsort > capsort.c

View File

@ -655,4 +655,10 @@ extern char *strnames[], *strcodes[], *strfnames[];
#define ERR (-1)
#endif
/* Compatibility */
#define Filedes fd
#define Ottyb shell_mode
#define Nttyb prog_mode
#define TTY struct termios
#endif /* _TERM_H_ */

View File

@ -128,4 +128,10 @@ extern char *strnames[], *strcodes[], *strfnames[];
#define ERR (-1)
#endif
/* Compatibility */
#define Filedes fd
#define Ottyb shell_mode
#define Nttyb prog_mode
#define TTY struct termios
#endif /* _TERM_H_ */