1#!/bin/sh - 2# 3# $Id: chk.tags,v 12.6 2007/07/06 18:44:33 bostic Exp $ 4# 5# Check to make sure we don't need any more symbolic links to tags files. 6 7d=../.. 8 9# Test must be run from the top-level directory, not from a test directory. 10[ -f $d/LICENSE ] || { 11 echo 'FAIL: cannot find source distribution directory.' 12 exit 1 13} 14 15t1=__1 16t2=__2 17 18(cd $d && ls -F | egrep / | sort | 19 sed -e 's/\///' \ 20 -e '/^CVS$/d' \ 21 -e '/^build_brew$/d' \ 22 -e '/^build_s60$/d' \ 23 -e '/^build_vxworks$/d' \ 24 -e '/^build_wince$/d' \ 25 -e '/^build_windows$/d' \ 26 -e '/^docs$/d' \ 27 -e '/^docs_book$/d' \ 28 -e '/^docs_src$/d' \ 29 -e '/^examples_java$/d' \ 30 -e '/^java$/d' \ 31 -e '/^mod_db4$/d' \ 32 -e '/^perl$/d' \ 33 -e '/^php_db4$/d' \ 34 -e '/^test$/d' \ 35 -e '/^test_cxx$/d' \ 36 -e '/^test_micro$/d' \ 37 -e '/^test_purify$/d' \ 38 -e '/^test_thread$/d' \ 39 -e '/^test_vxworks$/d') > $t1 40 41(cd $d && ls */tags | sed 's/\/tags$//' | sort) > $t2 42if diff $t1 $t2 > /dev/null; then 43 exit 0 44else 45 echo "<<< source tree >>> tags files" 46 diff $t1 $t2 47 exit 1 48fi 49