Source

LIME / bin / uniq

#!/bin/sh
##################################################################
# generic shell wrapper for AWK scripts in LIME
#
#Copyright (C) 2008 NXP Semiconductors B.V.
#
#This file is part of LIME.
#
#LIME is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License version 2
#as published by the Free Software Foundation; either version 2
#of the License, or (at your option) any later version.
#
#LIME is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with LIME.  If not, see <http://www.gnu.org/licenses/>.
##################################################################
stem=`basename $0`
base=`dirname $0`
[ -z "$LIME" ] && LIME=$base/..
[ -z "$iawk" ] && iawk=igawk
AWKLIB=$LIME/lib
export AWKPATH=$AWKLIB:$AWKPATH
$iawk -f $AWKLIB/$stem.awk $@