xref: /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/tools/iq_check/script/header_strip.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh -e
2
3INPUT=$1
4OUTPUT=$2
5
6# Drop all global headers
7cat $INPUT |tac |sed '/^#.*"\/usr\//,$d' |sed '/__fsid_t/d' |tac |grep -v "^#" | sed -e 's/_Bool/_Bool\n/'  > $OUTPUT
8