diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-02-17 03:13:38 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-02-17 03:13:38 +0000 |
commit | 3ee1c4d4b8f10a299dfe51e27c602fcba38db0d0 (patch) | |
tree | e25b3615d3f9b0469ab38d118de5a7c5cce450d2 | |
parent | 2332b829db8838fd2babf4ad06b45c6ec8de6479 (diff) | |
download | spec-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-x | spec-helper | 4 |
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 |