exit 1
fi
+if [ ! -x /usr/bin/patch ]; then
+ echo >&1 "You need to install patch to use adapter"
+ exit 1
+fi
+
t=`getopt -o hsmda --long help,sort,sort-br,no-macros,skip-macros,skip-desc,skip-defattr -n "$self" -- "$@"` || exit $?
eval set -- "$t"
{
local tmpdir
tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/adapter-XXXXXX) || exit
- awk -f adapter.awk $SPECFILE > $tmpdir/$SPECFILE || exit
+ gawk -f adapter.awk $SPECFILE > $tmpdir/$SPECFILE || exit
if [ "`diff --brief $SPECFILE $tmpdir/$SPECFILE`" ]; then
diff -u $SPECFILE $tmpdir/$SPECFILE > $tmpdir/$SPECFILE.diff