aboutsummaryrefslogtreecommitdiffstats
path: root/gprintify
blob: 85bf0cfceaafbb672c179bb14ecbeb768c7b8d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# $Id$

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..." && gprintify.py $scripts && echo "done"
    fi
fi