summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-05 05:08:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-05 05:08:32 +0000
commit7de3841898deaeba0e5d7a9435826bfa0255ba7e (patch)
tree544efec7bfded3c0f3a88c4cc100c2c4ec7525d5 /share
parentb28bfeb89a71361e0d701fc926db0cfaeb6d2a78 (diff)
catch 0-len term*.src in case tic messes up
Diffstat (limited to 'share')
-rw-r--r--share/termtypes/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/share/termtypes/Makefile b/share/termtypes/Makefile
index 10a5b93f2b4..74a7237b8ab 100644
--- a/share/termtypes/Makefile
+++ b/share/termtypes/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 1999/03/05 04:47:44 tholo Exp $
+# $OpenBSD: Makefile,v 1.8 1999/03/05 05:08:31 millert Exp $
#
# Take termcap/terminfo master file and generate termcap/terminfo .db files
# master: http://www.tuxedo.org/~esr/terminfo/termtypes.master.gz
@@ -12,7 +12,11 @@ terminfo.src: termtypes.master
tic -I ${.ALLSRC} | sed \
-e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
-e 's,/usr/lib/tabset,/usr/share/tabset,g' \
- > terminfo.src
+ > ${.TARGET}
+ @if [ ! -s ${.TARGET} ]; then \
+ echo ${.TARGET} is zero length! ;\
+ exit 1 ;\
+ fi
terminfo.db: terminfo.src
cap_mkdb -i -f terminfo terminfo.src
@@ -21,7 +25,11 @@ termcap.src: termtypes.master
tic -C ${.ALLSRC} | sed \
-e 's,/usr/share/lib/tabset,/usr/share/tabset,g' \
-e 's,/usr/lib/tabset,/usr/share/tabset,g' \
- > termcap.src
+ > ${.TARGET}
+ @if [ ! -s ${.TARGET} ]; then \
+ echo ${.TARGET} is zero length! ;\
+ exit 1 ;\
+ fi
termcap.db: termcap.src
cap_mkdb -f termcap termcap.src