From 005415fa3c343e6aef056e830e195d87ce8b73e1 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sat, 20 May 2006 13:14:39 +0000 Subject: - split main script, make all script independants --- gprintify | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 gprintify (limited to 'gprintify') 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 + -- cgit v1.2.1