aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-17 03:13:38 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-17 03:13:38 +0000
commit3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0 (patch)
treee25b3615d3f9b0469ab38d118de5a7c5cce450d2
parent2332b829db8838fd2babf4ad06b45c6ec8de6479 (diff)
downloadspec-helper-3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0.tar
spec-helper-3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0.tar.gz
spec-helper-3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0.tar.bz2
spec-helper-3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0.tar.xz
spec-helper-3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0.zip
don't call gprintify if init.d is empty.
-rwxr-xr-xspec-helper4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec-helper b/spec-helper
index 42ad740..558c977 100755
--- a/spec-helper
+++ b/spec-helper
@@ -53,9 +53,9 @@ test -z "$DONT_STRIP" && echo -n "Stripping files..." && strip_files && echo "do
test -z "$DONT_RELINK" && echo -n "Relativisation of symlinks..." && relative_me_babe && echo "done"
test -z "$DONT_CLEAN_PERL" && echo -n "Clean perl..." && clean_perl && echo "done"
test -z "$DONT_SYMLINK_LIBS" && echo -n "Building libraries symlinks..." && lib_symlinks && echo "done"
-if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d ]; then
+if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d -a -n "`ls $RPM_BUILD_ROOT/etc/rc.d/init.d/* 2> /dev/null`" ]; then
test -z "$DONT_GPRINTIFY" && echo -n "Gprintifying init scripts..." && gprintify.py $RPM_BUILD_ROOT/etc/rc.d/init.d/* && echo "done"
-elif [ -d $RPM_BUILD_ROOT/etc/init.d ]; then
+elif [ -d $RPM_BUILD_ROOT/etc/init.d -a -n "`ls $RPM_BUILD_ROOT/etc/init.d/* 2> /dev/null`" ]; then
test -z "$DONT_GPRINTIFY" && echo -n "Gprintifying init scripts..." && gprintify.py $RPM_BUILD_ROOT/etc/init.d/* && echo "done"
fi