blob: e86f414b8dd22095b6206c8b9fa993596b877f53 [file] [log] [blame]
Everton Marques871dbcf2009-08-11 15:43:05 -03001#! /bin/bash
2#
3# Check lib/memtypes.h from Quagga
4#
5# Run from quagga's top dir as:
6# ./pimd/quagga-memtypes.sh
7#
8# $QuaggaId: $Format:%an, %ai, %h$ $
9
10me=`basename $0`
11msg () {
12 echo >&2 $me: $*
13}
14
15memtypes_h=lib/memtypes.h
16if [ -e $memtypes_h ]; then
17 memtypes_h_size=`ls -s $memtypes_h | cut -d' ' -f1`
18 if [ "$memtypes_h_size" -lt 1 ]; then
19 msg WARNING: removing empty file: $memtypes_h -- awk failed?
20 rm $memtypes_h
21 fi
22fi