#!/usr/local/bin/bash
#
#
#======================================================================
#
#  Copyright (c) 2000 Qualcomm Incorporated.  All rights reserved.
#  The file License.txt specifies the terms for use, modification,
#  and redistribution.
#
#
# Revisions:
#
#    07/20/00 [rcg]
#            - File added.
#
#======================================================================
#
#
# File: check-fmt-cleanup
#
# Purpose:
#     If script check-fmt aborts, run this script to clean up.
#
#======================================================================


#------
#   Get list of all affected source files.
#------
FILE_LIST=`egrep -l ";" */*.c`

for file in $FILE_LIST
do
    TEMP_NAME="${file}.preserve"
    if test -s $TEMP_NAME
    then
        mv -f $TEMP_NAME $file
    fi
done
