#!/bin/sh

# $Id: gprintify 12368 2006-05-22 05:37:04Z othauvin $

if test -z "$DONT_GPRINTIFY"; then
    scripts=
    for f in `ls $RPM_BUILD_ROOT/etc/rc.d/init.d/* $RPM_BUILD_ROOT/etc/init.d/* 2> /dev/null`; do
    test -f $f && egrep -q '[[:space:]]*\.[[:space:]]+.*/functions' $f && scripts="$scripts $f"
    done
    if [ -n "$scripts" ]; then
    echo -n "Gprintifying init scripts..." && /usr/share/spec-helper/gprintify.py $scripts && echo "done"
    fi
fi

