aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-05-23 12:40:56 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-05-23 12:40:56 +0000
commit935b0dce9f6856643a418446845320ede0692c19 (patch)
tree5da9a7f27bc3d33f32380fce8023cada941a3395
parent47ffee16484c175cffc2b1cf445334be12ac5bd3 (diff)
downloadspec-helper-935b0dce9f6856643a418446845320ede0692c19.tar
spec-helper-935b0dce9f6856643a418446845320ede0692c19.tar.gz
spec-helper-935b0dce9f6856643a418446845320ede0692c19.tar.bz2
spec-helper-935b0dce9f6856643a418446845320ede0692c19.tar.xz
spec-helper-935b0dce9f6856643a418446845320ede0692c19.zip
checking for DONT_GPRINTIFY is done in rpm macro
-rwxr-xr-xgprintify15
1 files changed, 6 insertions, 9 deletions
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
-