
# Copyright 2004 by Sun Microsystems, Inc.
# All rights reserved.

# File
# ----
# shell script
# 
# Description
# -----------
# file parsing

#pragma ident  "@(#)Service_h.bash 1.1     04/05/12 SMI"
#!/bin/bash

set -xv 
OS1=`uname -a | awk '{ print $1}'`
test "$OS1" = "Linux" 
#echo $?
#if [ $? == 1 ]
#then 
    nb_struct_attvalue=`grep -n "struct AttValue {" $1 | cat | cut -d':' -f1`
    nb_attvalue_array=`grep -n "} AttValue_array;" $1 | cat | cut -d':' -f1`
    cmd="sed -e '${nb_struct_attvalue},${nb_attvalue_array}d' $1 > /tmp/Service.h.attvalue"
    eval $cmd
    cp /tmp/Service.h.attvalue  $1
    rm -f /tmp/Service.h.attvalue
#fi
