1 # $Id: Makefile,v 8.30 1996/11/27 11:59:09 bostic Exp $ (Berkeley) $Date: 1996/11/27 11:59:09 $
3 CAT
= dutch english french german ru_SU.KOI8-R spanish swedish
4 FILES
= ..
/cl
/*.c ..
/common
/*.c ..
/ex
/*.c ..
/vi
/*.c
14 print "\nMESSAGE NUMBER 1 IS NOT LEGAL"; \
17 if (++nline > $$1) { \
18 print "DUPLICATE MESSAGE NUMBER " $$1; \
21 for (; nline < $$1; ++nline) \
25 sed
-e
'1s/^/VI_MESSAGE_CATALOG/' \
27 -e
'1!s/"$$/X/' > $@
; \
29 if grep DUPLICATE
$@
> /dev
/null
; then \
32 if grep
'NOT LEGAL' $@
> /dev
/null
; then \
33 grep
'NOT LEGAL' $@
; \
36 CHK
= dutch.
check english.
check french.
check german.
check \
37 ru_SU.KOI8-R.
check spanish.
check swedish.
check
41 f
=`basename $@ .check`; \
42 (echo
"Unused message id's (this is okay):"; \
44 while (++nline < $$1) \
45 printf "%03d\n", nline; \
47 echo
=========================; \
48 echo
"MISSING ERROR MESSAGES (Please add!):"; \
49 awk
'{print $$1}' < $$f.base |
sort -u
> __ck1
; \
50 awk
'{print $$1}' < english.base |
sort -u
> __ck2
; \
51 comm
-13 __ck1 __ck2
; \
52 echo
=========================; \
53 echo
"Extra error messages (just delete them):"; \
54 comm
-23 __ck1 __ck2
; \
55 echo
=========================; \
56 echo
"MESSAGES WITH THE SAME MESSAGE ID's (FIX!):"; \
58 `sed '/^$$/d' < $$f.base | sort -u | \
59 awk '{print $$1}' | uniq -d`; do \
62 echo
=========================; \
63 echo
"Duplicate messages, both id and message (this is okay):"; \
64 sed
'/^$$/d' < $$f.base |
sort | uniq
-c | \
65 awk
'$$1 != 1 { print $$0 }' |
sort -n
; \
66 echo
=========================; \
67 echo
"Duplicate messages, just message (this is okay):"; \
68 sed
'/^$$/d' < $$f |
sort | uniq
-c | \
69 awk
'$$1 != 1 { print $$0 }' |
sort -n
; \
70 echo
=========================) > $@
72 english.base
: dump
${FILES} #Makefile
81 ${CC} -O
-o dump dump.c
84 rm -f dump dump.o
${CAT} english.base
*.
check __ck1 __ck2