From 935b0dce9f6856643a418446845320ede0692c19 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Sat, 23 May 2009 12:40:56 +0000 Subject: checking for DONT_GPRINTIFY is done in rpm macro --- gprintify | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'gprintify') diff --git a/gprintify b/gprintify index f78bbbd..7ca3dff 100755 --- a/gprintify +++ b/gprintify @@ -11,13 +11,10 @@ if [ ! -d "$RPM_BUILD_ROOT" ]; then exit 1 fi -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 +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 - -- cgit v1.2.1