diff options
Diffstat (limited to 'gprintify')
-rwxr-xr-x | gprintify | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gprintify b/gprintify new file mode 100755 index 0000000..85bf0cf --- /dev/null +++ b/gprintify @@ -0,0 +1,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 + |